Skip to content

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

@huan

Description

@huan
$ 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions