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

Fresh clone gives error import { defineCustomElements } from './loader'; #13

Open
mj6uc opened this issue Oct 3, 2020 · 2 comments
Open

Comments

@mj6uc
Copy link

mj6uc commented Oct 3, 2020

Steps:

  1. git clone https://github.com/TeamHive/app-starter.git terra
  2. cd terra; npm i
  3. 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
Copy link
Author

mj6uc commented Oct 3, 2020

running

npm run storybook

first seems to fix this.

@mj6uc
Copy link
Author

mj6uc commented Oct 3, 2020


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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant