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

npm run prod error at 0.36.0rc3 #9450

Closed
toop opened this issue Apr 2, 2020 · 4 comments
Closed

npm run prod error at 0.36.0rc3 #9450

toop opened this issue Apr 2, 2020 · 4 comments
Labels
inactive Inactive for >= 30 days

Comments

@toop
Copy link
Contributor

toop commented Apr 2, 2020

superset version: 0.36.rc3
python version: 3.7.7
node.js version: 13.12.0
npm version: 6.14.4

F:\superset-dev\superset-frontend>npm run prod

[email protected] prod F:\superset-dev\superset-frontend
node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js --mode=production --colors --progress

Starting type checking service...
Using 1 worker with 2048MB memory limit
591 modules

ERROR in ./src/SqlLab/index.jsx 23:16
Module parse failed: Unexpected token (23:16)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import App from './App';
|

ReactDOM.render(, document.getElementById('app'));
|

ERROR in ./src/welcome/index.jsx 23:16
Module parse failed: Unexpected token (23:16)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import App from './App';
|

ReactDOM.render(, document.getElementById('app'));
|

ERROR in ./src/profile/index.jsx 23:16
Module parse failed: Unexpected token (23:16)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import App from './App';
|

ReactDOM.render(, document.getElementById('app'));
|

ERROR in ./src/addSlice/index.jsx 23:16
Module parse failed: Unexpected token (23:16)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import App from './App';
|

ReactDOM.render(, document.getElementById('js-add-slice-container'));
|

ERROR in ./src/showSavedQuery/index.jsx 39:4
Module parse failed: Unexpected token (39:4)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| ReactDom.render(

<div>

| <Form
| schema={config.JSONSCHEMA}

ERROR in ./src/dashboard/index.jsx 42:16
Module parse failed: Unexpected token (42:16)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| );
|

ReactDOM.render(, document.getElementById('app'));
|

ERROR in ./src/explore/index.jsx 44:16
Module parse failed: Unexpected token (44:16)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| );
|

ReactDOM.render(, document.getElementById('app'));
|
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] prod: node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js --mode=production --colors --progress
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] prod 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\Administrator\AppData\Roaming\npm-cache_logs\2020-04-02T10_02_26_178Z-debug.log

@villebro
Copy link
Member

villebro commented Apr 3, 2020

I believe this is a duplicate of #9457 . Please check if downgrading to Node 12 fixes the problem.

@toop
Copy link
Contributor Author

toop commented Apr 6, 2020

OS: win10 64
superset version: 0.36.rc3
python version: 3.7.7
node.js version: 12.16.1
npm version: 6.11.3

OS:win10 64
superset version: 0.36.rc3
python version: 3.7.7
node.js version: 13.12.0
npm version: 6.14.4

The same error,@villebro,Thanks!

@WenQiangW
Copy link

I have same error , too
superset : 0.36.rc1
node : v12.3.1
npm : 6.9.0

@stale
Copy link

stale bot commented Jun 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

3 participants