Skip to content

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

@mj6uc

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)

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