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

ERROR with npm run start , even after installing cross-env #2

Closed
akakak1 opened this issue Mar 28, 2019 · 3 comments
Closed

ERROR with npm run start , even after installing cross-env #2

akakak1 opened this issue Mar 28, 2019 · 3 comments

Comments

@akakak1
Copy link

akakak1 commented Mar 28, 2019

GOT THIS ERROR while doing: npm run start

D:\Playground\architectui-react-theme-free>npm run start

> architectui-react-theme-free@1.0.0 start D:\Node Practice\architectui-react-theme-free
> cross-env NODE_PATH=./src node scripts/start.js

Cannot destructure property `compile` of 'undefined' or 'null'.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! architectui-react-theme-free@1.0.0 start: `cross-env NODE_PATH=./src node scripts/start.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the architectui-react-theme-free@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\AK\AppData\Roaming\npm-cache\_logs\2019-03-28T06_33_52_821Z-debug.log
@kildareflare
Copy link

kildareflare commented Apr 19, 2019

I also ran into problems with npm run start.

Cannot read property 'entryOption' of undefined

Update Webpack and Webpack CLI due to this comment

  "webpack": "^4.20.2",
    "webpack-cli": "^3.1.1",

This caused another error:

Plugin could not be registered at 'html-webpack-plugin-before-html-processing'. Hook was not found.

This comment prompted me to try swapping the order of HtmlWebpackPlugin and InterpolateHtmlPlugin as shown below.

module.exports = {
  //...
  plugins: [
    new HtmlWebpackPlugin({
      // ...
    }),
    new InterpolateHtmlPlugin(env.raw),
    //..
  ]
}

The dev server now starts, but I'm getting another error...

Module parse failed: Unexpected token (10:11)
You may need an appropriate loader to handle this file type.
|
| var Dashboards = lazy(function () {
>     return import('../../DemoPages/Dashboards');
| });
URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico'

Most likely caused by %PUBLIC_URL% and the swapping of the plugins order

@mbilal-lumatax
Copy link

Module parse failed: Unexpected token (10:11)
You may need an appropriate loader to handle this file type.
|
| var Dashboards = lazy(function () {
return import('../../DemoPages/Dashboards');
| });
URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico'

I'm getting this issue how can I resolve this? please help me.

@DPTeamMember
Copy link
Collaborator

Hello @akakak1 @kildareflare

We have resolved this issue in the previous release, please check.

Thank you.

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

4 participants