Closed Somraz closed 3 years ago
Hello @Somraz,
Can you share output from npm list | grep webpack
?
I am using windows, it does not have grep command. Earlier as I mentioned, I was unable to create template Dashboard App with React, AntD, and Chart.js as on clicking "Create app" button it throws npx error(due to space in my directory name).
I executed the following commands instead to create dashboard-app:
npm install -g create-react-app
create-react-app dashboard-app
Could this be the issue?
npm list has following output:
I executed the following commands instead to create dashboard-app: npm install -g create-react-app create-react-app dashboard-app
Nope, but you will not get a real dashboard.
So, I've compared dependencies and didn't see any big difference.
(due to space in directory name)
There are many issues inside npx
related to space inside path:
https://github.com/zkat/npx/issues/146 https://github.com/zkat/npx/issues/110
Probably webpack has a similar issue with resolving _
(space) inside paths.
It's not a bug in Cube.js. Anyone who will face this issue, feel free to share more details/solutions.
I am facing this issue from many day, I did try to resolve many time but I did not find any solution. Whenever I try to install, or generate web or android app in ionic, I faced this problem . Please give me suggestion and help me to git ride of this problem.
.. ionic start migration blank √ Downloading and extracting blank starter - done!
? Would you like to integrate your new app with Cordova to target native iOS and Android? No √ Personalizing ionic.config.json and package.json - done!
Installing dependencies may take several minutes.
IONIC DEVAPP *
Speed up development with the Ionic DevApp, our fast, on-device testing mobile app
Test on iOS and Android without Native SDKs
LiveReload for instant style and JS updates
️--> Install DevApp: https://bit.ly/ionic-dev-app <--
npm i × Running command - failed! [ERROR] An error occurred while running npm i (exit code 1):
node:internal/modules/cjs/loader:1077
const err = new Error(message);
^
Error: Cannot find module './package.json'
Require stack:
- C:\Users\91881\AppData\Roaming\npm\node_modules\npm\lib\cli.js
- C:\Users\91881\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:110:18)
at createEnginesValidation (C:\Users\91881\AppData\Roaming\npm\node_modules\npm\lib\cli.js:7:15)
at module.exports (C:\Users\91881\AppData\Roaming\npm\node_modules\npm\lib\cli.js:73:27)
at Object.<anonymous> (C:\Users\91881\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js:2:25)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\91881\\AppData\\Roaming\\npm\\node_modules\\npm\\lib\\cli.js',
'C:\\Users\\91881\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js'
]
}
Node.js v18.17.0
Dashboard app unable to start, displaying error message.
After starting the Cube.js development server
$ npm run dev
Navigate to "Dashboard App,” select "React Antd Static" with "Chart.js," and click on the “Create dashboard app” button. It throws following error(due to space in directory name):
So I ran the following commands on command prompt to create dashboard app:
Then navigate to "Dashboard App,” hit the “Start” button, the dashboard page shows following error:![image](https://user-images.githubusercontent.com/35997749/98801179-77676c80-2437-11eb-8b7a-5deb5f71b84b.png)
The console displays following: