Skip to content

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

Open

Description

@mj6uc

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)

Activity

  1. mj6uc commented on Oct 3, 2020

    @mj6uc
    Author

    running

    npm run storybook

    first seems to fix this.

  2. mj6uc commented on Oct 3, 2020

    @mj6uc
    Author
    
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions