stencil-ds-plugins-demo icon indicating copy to clipboard operation
stencil-ds-plugins-demo copied to clipboard

error TS2307: Cannot find module 'component-libraryloader' - Stencil 1.8.2

Open peterennis opened this issue 4 years ago • 0 comments

@mhartington

Repo: https://github.com/adaept/stencil-ds-plugins-demo Branch and Commit: https://github.com/adaept/stencil-ds-plugins-demo/commit/7aeda1fce9497cd05fd9b7650ef6921c05812ea7

  1. Updated all deps
  2. Using Stencil 1.8.2
  3. Using TypeScript 3.5.3
  4. React build still fails
C:\ae\stencil-ds-plugins-demo>npx lerna bootstrap
lerna notice cli v3.18.3
lerna info versioning independent
lerna info Bootstrapping 5 packages
lerna info Installing external dependencies
lerna info Symlinking packages and binaries
lerna success Bootstrapped 5 packages

C:\ae\stencil-ds-plugins-demo>cd C:\ae\stencil-ds-plugins-demo\packages\component-library

C:\ae\stencil-ds-plugins-demo\packages\component-library>npm run build --prod

> [email protected] build C:\ae\stencil-ds-plugins-demo\packages\component-library
> stencil build --docs

[18:27.2]  @stencil/core v1.8.2
[18:28.2]  build, demo, prod mode, started ...
[18:28.3]  transpile started ...
[18:31.2]  transpile finished in 2.90 s
[18:31.2]  type checking started ...
[18:31.2]  copy started ...
[18:31.2]  generate styles started ...
[18:31.2]  generate webcomponents module started ...
[18:31.2]  copy finished (0 files) in 27 ms
[18:31.2]  generate styles finished in 25 ms
[18:31.4]  generating angular-library started ...
[18:31.4]  generating react-library started ...
[18:31.8]  generate angular-library finished in 396 ms
[18:31.9]  generate react-library finished in 535 ms
[18:34.1]  generate webcomponents module finished in 2.94 s
[18:34.1]  bundling components started ...
[18:40.5]  bundling components finished in 6.30 s
[18:41.4]  type checking finished in 10.25 s
[18:41.7]  build finished in 13.56 s


C:\ae\stencil-ds-plugins-demo\packages\component-library>cd C:\ae\stencil-ds-plugins-demo\packages\component-library-angular

C:\ae\stencil-ds-plugins-demo\packages\component-library-angular>npm run build --prod

> [email protected] build C:\ae\stencil-ds-plugins-demo\packages\component-library-angular
> npm run build.ng


> [email protected] build.ng C:\ae\stencil-ds-plugins-demo\packages\component-library-angular
> npm run build.es2015 && npm run build.es5


> [email protected] build.es2015 C:\ae\stencil-ds-plugins-demo\packages\component-library-angular
> ngc -p tsconfig.json && rollup --config ./scripts/rollup.config.js

node-resolve: setting options.module is deprecated, please override options.mainFields instead

build/es2015/core.js → dist/fesm2015.js...
created dist/fesm2015.js in 115ms

> [email protected] build.es5 C:\ae\stencil-ds-plugins-demo\packages\component-library-angular
> ngc -p tsconfig.legacy.json && rollup --config ./scripts/rollup.config.legacy.js

node-resolve: setting options.module is deprecated, please override options.mainFields instead

build/es5/core.js → dist/fesm5.js...
created dist/fesm5.js in 125ms

C:\ae\stencil-ds-plugins-demo\packages\component-library-angular>cd C:\ae\stencil-ds-plugins-demo\packages\component-library-react

C:\ae\stencil-ds-plugins-demo\packages\component-library-react>npm run build --prod

> [email protected] build C:\ae\stencil-ds-plugins-demo\packages\component-library-react
> npm run clean && npm run compile


> [email protected] clean C:\ae\stencil-ds-plugins-demo\packages\component-library-react
> rimraf dist


> [email protected] compile C:\ae\stencil-ds-plugins-demo\packages\component-library-react
> npm run tsc


> [email protected] tsc C:\ae\stencil-ds-plugins-demo\packages\component-library-react
> tsc -p .

src/components.ts:7:54 - error TS2307: Cannot find module 'component-libraryloader'.

7 import { defineCustomElements, applyPolyfills } from 'component-library\loader';
                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] tsc: `tsc -p .`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] tsc script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\peter\AppData\Roaming\npm-cache\_logs\2019-12-20T05_20_44_590Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] compile: `npm run tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] compile script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\peter\AppData\Roaming\npm-cache\_logs\2019-12-20T05_20_44_651Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `npm run clean && npm run compile`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\peter\AppData\Roaming\npm-cache\_logs\2019-12-20T05_20_44_710Z-debug.log

C:\ae\stencil-ds-plugins-demo\packages\component-library-react>

Capture764

peterennis avatar Dec 20 '19 05:12 peterennis