Fresh clone gives error import { defineCustomElements } from './loader';
Opened this issue · 2 comments
mj6uc commented
Steps:
- git clone https://github.com/TeamHive/app-starter.git terra
- cd terra; npm i
- npm run start
gives the following:
> ng serve
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
10% building 3/3 modules 0 activeℹ 「wds」: Project is running at http://localhost:4200/webpack-dev-server/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: 404s will fallback to //index.html
chunk {main} main.js, main.js.map (main) 2.03 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 159 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.09 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 17.1 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 341 kB [initial] [rendered]
Date: 2020-10-03T04:40:51.751Z - Hash: b21dbb44668b4579cacf - Time: 4186ms
ERROR in ../../libs/ui/index.ts:1:38 - error TS2307: Cannot find module './loader'.
1 import { defineCustomElements } from './loader';
~~~~~~~~~~
ERROR in ./src/styles.scss (/Users/mj/development/mr-test/terra/node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!/Users/mj/development/mr-test/terra/node_modules/postcss-loader/src??embedded!/Users/mj/development/mr-test/terra/node_modules/sass-loader/lib/loader.js??ref--15-3!./src/styles.scss)
Module build failed (from /Users/mj/development/mr-test/terra/node_modules/postcss-loader/src/index.js):
Error: Failed to find '@hive/ui/dist/hive/hive.css'
in [
/Users/mj/development/mr-test/terra/apps/web/src
]
at /Users/mj/development/mr-test/terra/node_modules/postcss-import/lib/resolve-id.js:35:13
at async Promise.all (index 0)
mj6uc commented
running
npm run storybook
first seems to fix this.
mj6uc commented
npm ERR! missing script: start:native
npm ERR!
npm ERR! Did you mean one of these?
npm ERR! build:native
npm ERR! start:ui
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/mj/.npm/_logs/2020-10-03T04_55_46_022Z-debug.log
It seems that the package.json
misses definition for this.