GithubHelp home page GithubHelp logo

chatie / app Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 7.0 591 KB

ChatBot Pocket Manager for Android & Ios, Powred by Ionic & Angular

Home Page: https://app.chatie.io

License: Apache License 2.0

TypeScript 65.82% HTML 24.55% JavaScript 0.85% Shell 4.96% SCSS 3.82%

app's People

Contributors

greenkeeper[bot] avatar huan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

app's Issues

Use a transparent `icon.png` for the `Progressive Web Apps` mode

Currently, the icon.png has no alpha channel because of the limitation of IOS iTunes Connect.

However, when we add app.chatie.io to the Android/Ios Desktop as a Progressive Web Apps, the icon is ugly if it's round corner is not transparent.

To be fixed.

Db: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Failed to load https://subscriptions.ap-northeast-1.graph.cool/v1/chatie: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access. The response had HTTP status code 400. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
2polyfills.js:3 GET https://subscriptions.ap-northeast-1.graph.cool/v1/chatie 400 (Bad Request)
(anonymous) @ polyfills.js:3
ClientRequest._onFinish @ request.js:148
(anonymous) @ request.js:61
EventEmitter.emit @ events.js:78
finishMaybe @ _stream_writable.js:620
endWritable @ _stream_writable.js:628
Writable.end @ _stream_writable.js:584
ClientRequest.end @ request.js:292
get @ index.js:44
https.get @ index.js:17
initAsClient @ WebSocket.js:621
WebSocket @ WebSocket.js:70
SubscriptionClient.connect @ client.js:355
...
...
...
407 @ main.ts:5
__webpack_require__ @ bootstrap b4376e0bbc44f7deb241:54
webpackJsonpCallback @ bootstrap b4376e0bbc44f7deb241:25
(anonymous) @ main.js:1

Track with Graph.Cool

  1. Official Issue: Graphcool/graphcool-framework#504
  2. Official Forum: https://www.graph.cool/forum/t/cors-problem-no-access-control-allow-origin-header-is-present-in-the-subscriptions-endpoint/2988

See Also

  1. https://blog.graph.cool/enabling-cors-for-express-graphql-apollo-server-1ef999bfb38d
  2. https://www.graph.cool/forum/t/cors-issue-with-file-upload/655
  3. https://github.com/apollographql/relay-modern-hello-world/issues/9#issuecomment-350289787
  4. prisma-archive/graphcool-templates#79 (comment)

AOT: Function calls are not supported in decorators but 'AuthModule' was called.

Error during template compile of 'AppModule' Function calls are not supported in decorators but 'AuthModule' was called.

$ npm run ionic:build --aot

> @chatie/[email protected] ionic:build /home/zixia/chatie/app
> ionic-app-scripts build

[02:12:05]  ionic-app-scripts 3.1.8 
[02:12:05]  build dev started ... 
[02:12:05]  clean started ... 
[02:12:05]  clean finished in 1 ms 
[02:12:05]  copy started ... 
[02:12:05]  deeplinks started ... 
[02:12:05]  deeplinks finished in 84 ms 
[02:12:05]  ngc started ... 
[02:12:09]  typescript error 
            Error during template compile of 'AppModule' Function calls are not supported in decorators but 'AuthModule' 
            was called. 

[02:12:09]  ionic-app-script task: "build" 
[02:12:09]  Error: The Angular AoT build failed. See the issues above 
Error: The Angular AoT build failed. See the issues above
    at /home/zixia/chatie/app/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55
    at step (/home/zixia/chatie/app/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
    at Object.next (/home/zixia/chatie/app/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
    at fulfilled (/home/zixia/chatie/app/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
    at <anonymous>

See Also

Module not found: Error: Can't resolve '@chatie/db/src/hostie/index'

$ npm run ionic:build --aot

> @chatie/[email protected] ionic:build /home/zixia/chatie/app
> ionic-app-scripts build

[13:19:00]  ionic-app-scripts 3.1.8 
[13:19:00]  build dev started ... 
[13:19:00]  clean started ... 
[13:19:00]  clean finished in less than 1 ms 
[13:19:00]  copy started ... 
[13:19:00]  deeplinks started ... 
[13:19:00]  deeplinks finished in 55 ms 
[13:19:00]  ngc started ... 
[13:19:07]  ngc finished in 6.45 s 
[13:19:07]  preprocess started ... 
[13:19:07]  preprocess finished in less than 1 ms 
[13:19:07]  webpack started ... 
[13:19:07]  copy finished in 6.72 s 
[13:19:15]  ionic-app-script task: "build" 
...
Module not found: Error: Can't resolve '@chatie/db/src/hostie/index' in '/home/zixia/chatie/app/src/pages/hostie-list'
resolve '@chatie/db/src/hostie/index' in '/home/zixia/chatie/app/src/pages/hostie-list'
  Parsed request is a module
  using description file: /home/zixia/chatie/app/package.json (relative path: ./src/pages/hostie-list)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/zixia/chatie/app/package.json (relative path: ./src/pages/hostie-list)
    resolve as module
      looking for modules in /home/zixia/chatie/app/node_modules
        using description file: /home/zixia/chatie/app/package.json (relative path: ./node_modules)
          Field 'browser' doesn't contain a valid alias configuration
        after using description file: /home/zixia/chatie/app/package.json (relative path: ./node_modules)
          using description file: /home/zixia/chatie/app/node_modules/@chatie/db/package.json (relative path: ./src/hostie/index)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/zixia/chatie/app/node_modules/@chatie/db/src/hostie/index doesn't exist
            .ts
              Field 'browser' doesn't contain a valid alias configuration
              /home/zixia/chatie/app/node_modules/@chatie/db/src/hostie/index.ts doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/zixia/chatie/app/node_modules/@chatie/db/src/hostie/index.js doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/zixia/chatie/app/node_modules/@chatie/db/src/hostie/index.json doesn't exist
            as directory
              /home/zixia/chatie/app/node_modules/@chatie/db/src/hostie/index doesn't exist
[/home/zixia/chatie/app/node_modules/@chatie/db/src/hostie/index]
[/home/zixia/chatie/app/node_modules/@chatie/db/src/hostie/index.ts]
[/home/zixia/chatie/app/node_modules/@chatie/db/src/hostie/index.js]
[/home/zixia/chatie/app/node_modules/@chatie/db/src/hostie/index.json]
[/home/zixia/chatie/app/node_modules/@chatie/db/src/hostie/index]
 @ ./src/pages/hostie-list/hostie-list.ngfactory.js 14:0-75 51:0-51
 @ ./src/app/app.module.ngfactory.js
 @ ./src/app/main.ts
    at new BuildError (/home/zixia/chatie/app/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
    at callback (/home/zixia/chatie/app/node_modules/@ionic/app-scripts/dist/webpack.js:121:28)
    at emitRecords.err (/home/zixia/chatie/app/node_modules/webpack/lib/Compiler.js:269:13)
    at Compiler.emitRecords (/home/zixia/chatie/app/node_modules/webpack/lib/Compiler.js:375:38)
    at emitAssets.err (/home/zixia/chatie/app/node_modules/webpack/lib/Compiler.js:262:10)
    at applyPluginsAsyncSeries1.err (/home/zixia/chatie/app/node_modules/webpack/lib/Compiler.js:368:12)
    at next (/home/zixia/chatie/app/node_modules/tapable/lib/Tapable.js:218:11)
    at Compiler.compiler.plugin (/home/zixia/chatie/app/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
    at Compiler.applyPluginsAsyncSeries1 (/home/zixia/chatie/app/node_modules/tapable/lib/Tapable.js:222:13)
    at Compiler.afterEmit (/home/zixia/chatie/app/node_modules/webpack/lib/Compiler.js:365:9)

AOT: Encountered undefined provider! Error: The Angular AoT build failed.

It's caused by @chatie/db: Chatie/db#30

Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files.

$ ionic cordova build browser --prod

? Looks like a fresh checkout! No ./node_modules directory found. Would you like to install project dependencies? Yes
Installing dependencies may take several minutes!
> npm i
โœ” Running command - done!
Running app-scripts build: --prod --platform browser --target cordova
[04:17:35]  build prod started ... 
[04:17:35]  clean started ... 
[04:17:35]  clean finished in 1 ms 
[04:17:35]  copy started ... 
[04:17:35]  deeplinks started ... 
[04:17:35]  deeplinks finished in 57 ms 
[04:17:35]  ngc started ... 
[04:17:38]  typescript error 
            Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by 
            using 'barrel' index.ts files. 

Error: The Angular AoT build failed. See the issues above
    at /home/zixia/chatie/app/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55
    at step (/home/zixia/chatie/app/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
    at Object.next (/home/zixia/chatie/app/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
    at fulfilled (/home/zixia/chatie/app/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
    at <anonymous>
[04:17:39]  copy finished in 3.40 s 

See Also

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.