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

JS error just after the install #755

Open
reinis-me opened this issue Feb 6, 2020 · 1 comment
Open

JS error just after the install #755

reinis-me opened this issue Feb 6, 2020 · 1 comment

Comments

@reinis-me
Copy link

reinis-me commented Feb 6, 2020

Hi! I keep getting this JS error right after the installation of Particle (tried few different versions, latest and the 10.6.0) and it's all the same.

Uncaught SyntaxError: Invalid or unexpected token

Problem exists somewhere here:
`// "./apps/drupal/drupal-jquery.js":
/
!
**********************************!
!
./apps/drupal/drupal-jquery.js !
*
*******************************/
/
! no exports provided /
/
/ (function(module, webpack_exports, webpack_require) {

"use strict";
eval("webpack_require.r(webpack_exports);\n/* WEBPACK VAR INJECTION /(function(global) {/ harmony import / var jquery_dist_jquery_min__WEBPACK_IMPORTED_MODULE_0__ = webpack_require(/! jquery/dist/jquery.min / "./node_modules/jquery/dist/jquery.min.js");\n/ harmony import / var jquery_dist_jquery_min__WEBPACK_IMPORTED_MODULE_0___default = /#PURE/webpack_require.n(jquery_dist_jquery_min__WEBPACK_IMPORTED_MODULE_0__);\n\nglobal.jQuery = jquery_dist_jquery_min__WEBPACK_IMPORTED_MODULE_0___default.a;\n/ WEBPACK VAR INJECTION /}.call(this, webpack_require(/! ./../../node_modules/webpack/buildin/global.js / "./node_modules/webpack/buildin/global.js")))\n\n
/
**/ }),
`

Any ideas? Thank you!

Update: happens only when NODE_ENV=development

@reinis-me
Copy link
Author

Found a workaround changing webpack.particle.js:37

from
devtool: NODE_ENV === 'development' ? 'eval' : 'source-map',

to
devtool: NODE_ENV === 'development' ? 'source-map' : 'source-map',

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

1 participant