Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
huan opened this issue Apr 11, 2018 · 0 comments
Open

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

huan opened this issue Apr 11, 2018 · 0 comments
Labels

Comments

@huan
Copy link
Member

huan commented Apr 11, 2018

$ npm run ionic:build --aot

> @chatie/app@0.2.21 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant