ionic-team / stencil-ds-plugins-demo

This is a demo project using the stencil-ds-plugins.
MIT License
44 stars 20 forks source link

app-react - Failed to compile #4

Open peterennis opened 5 years ago

peterennis commented 5 years ago
C:\ae\stencil-ds-plugins-demo\packages\app-react>npm start

> react-app@0.1.0 start C:\ae\stencil-ds-plugins-demo\packages\app-react
> react-scripts start
Starting the development server...

Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
Failed to compile.

../component-library-react/dist/components.js
Module not found: Can't resolve 'component-library/dist/loader' in 'C:\ae\stencil-ds-plugins-demo\packages\component-library-react\dist'
Terminate batch job (Y/N)? y

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

Capture692

SimonGolms commented 4 years ago

I got into the same thing and found out that my initial steps were wrong - with following initialization steps I was able to start the angular app successfully:

  1. git clone https://github.com/ionic-team/stencil-ds-plugins-demo.git stencil-ds-plugins-demo && cd stencil-ds-plugins-demo
  2. npm install
  3. lerna bootstrap or npx lerna bootstrap if lerna is not already installed globally
  4. lerna run build
  5. cd packages/app-react && npm run start
  6. Open http://localhost:3000 in your browser