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 when compiling in production mode #1

Open
michaelkolesidis opened this issue Jun 8, 2022 · 0 comments
Open

Error when compiling in production mode #1

michaelkolesidis opened this issue Jun 8, 2022 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@michaelkolesidis
Copy link
Owner

When compiling in development mode, everything works without any problem. But when attempting to compile in production mode, I get his error:

> camelnotes@0.0.1 build
> webpack build --mode production

assets by status 733 bytes [cached] 2 assets
runtime modules 1.06 KiB 2 modules
./src/index.js 79 bytes [built] [code generated]

ERROR in 059bfb46c836495d9b216d612e4b48ef.js
059bfb46c836495d9b216d612e4b48ef.js from Terser plugin
Unexpected token: operator (<) [059bfb46c836495d9b216d612e4b48ef.js:6,16]
    at js_error (/home/michael/Documents/Programming/WebDev/Projects/camelnotes/node_modules/terser/dist/bundle.min.js:546:11)
    at croak (/home/michael/Documents/Programming/WebDev/Projects/camelnotes/node_modules/terser/dist/bundle.min.js:1270:9)
    at token_error (/camelnotes/node_modules/terser/dist/bundle.min.js:1278:9)
    at unexpected (/camelnotes/node_modules/terser/dist/bundle.min.js:1284:9)
    at expr_atom (/camelnotes/node_modules/terser/dist/bundle.min.js:2523:9)
    at maybe_unary (/camelnotes/node_modules/terser/dist/bundle.min.js:3308:19)
    at expr_ops (/camelnotes/node_modules/terser/dist/bundle.min.js:3359:24)
    at maybe_conditional (/camelnotes/node_modules/terser/dist/bundle.min.js:3364:20)
    at maybe_assign (/home/michael/Documents/Programming/WebDev/Projects/camelnotes/node_modules/terser/dist/bundle.min.js:3441:20)
    at expression (/camelnotes/node_modules/terser/dist/bundle.min.js:3466:24)

webpack 5.73.0 compiled with 1 error in 186 ms

Apparently, it caused by the Terser plugin.

Any help would be more than welcome.

@michaelkolesidis michaelkolesidis added bug Something isn't working help wanted Extra attention is needed labels Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant