DashboardPack / architectui-react-theme-free

ArchitectUI React admin template is a simple yet fully customizable admin dashboard for web apps and other software.
https://dashboardpack.com/theme-details/architectui-dashboard-react-pro/
MIT License
126 stars 106 forks source link

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

Closed akakak1 closed 3 years ago

akakak1 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 3 years ago

Hello @akakak1 @kildareflare

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

Thank you.