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

Unclosed bracket when building Nextjs Ts and V3 #6323

Closed
JoseGarciaM opened this issue Dec 10, 2021 · 1 comment
Closed

Unclosed bracket when building Nextjs Ts and V3 #6323

JoseGarciaM opened this issue Dec 10, 2021 · 1 comment

Comments

@JoseGarciaM
Copy link

After upgrading and following the upgrade guide in your website I am not able to build the project.

`jcgm@JoseloG-Macbook-Pro web % npx next build
info - Checking validity of types
info - Creating an optimized production build
Failed to compile.

HookWebpackError: /Users/jcgm/Dev/Horchata/web/static/css/72a5655cfa1e5d11.css:804:21: Unclosed bracket
at makeWebpackError (/Users/jcgm/Dev/Horchata/web/node_modules/next/dist/compiled/webpack/bundle5.js:47168:9)
at /Users/jcgm/Dev/Horchata/web/node_modules/next/dist/compiled/webpack/bundle5.js:31056:12
at eval (eval at create (/Users/jcgm/Dev/Horchata/web/node_modules/next/dist/compiled/webpack/bundle5.js:141512:10), :34:1)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
-- inner error --
CssSyntaxError: /Users/jcgm/Dev/Horchata/web/static/css/72a5655cfa1e5d11.css:804:21: Unclosed bracket
at Input.error (/Users/jcgm/Dev/Horchata/web/node_modules/next/node_modules/postcss/lib/input.js:123:16)
at ScssParser.unclosedBracket (/Users/jcgm/Dev/Horchata/web/node_modules/next/node_modules/postcss/lib/parser.js:514:22)
at ScssParser.other (/Users/jcgm/Dev/Horchata/web/node_modules/next/node_modules/postcss/lib/parser.js:139:35)
at ScssParser.parse (/Users/jcgm/Dev/Horchata/web/node_modules/next/node_modules/postcss/lib/parser.js:59:16)
at scssParse (/Users/jcgm/Dev/Horchata/web/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:335)
at new LazyResult (/Users/jcgm/Dev/Horchata/web/node_modules/next/node_modules/postcss/lib/lazy-result.js:122:16)
at Processor.process (/Users/jcgm/Dev/Horchata/web/node_modules/next/node_modules/postcss/lib/processor.js:33:12)
at CssMinimizerPlugin.optimizeAsset (/Users/jcgm/Dev/Horchata/web/node_modules/next/dist/build/webpack/plugins/css-minimizer-plugin.js:43:12)
at /Users/jcgm/Dev/Horchata/web/node_modules/next/dist/build/webpack/plugins/css-minimizer-plugin.js:77:55
at processTicksAndRejections (internal/process/task_queues.js:93:5)
caused by plugins in Compilation.hooks.processAssets
CssSyntaxError: /Users/jcgm/Dev/Horchata/web/static/css/72a5655cfa1e5d11.css:804:21: Unclosed bracket
at Input.error (/Users/jcgm/Dev/Horchata/web/node_modules/next/node_modules/postcss/lib/input.js:123:16)
at ScssParser.unclosedBracket (/Users/jcgm/Dev/Horchata/web/node_modules/next/node_modules/postcss/lib/parser.js:514:22)
at ScssParser.other (/Users/jcgm/Dev/Horchata/web/node_modules/next/node_modules/postcss/lib/parser.js:139:35)
at ScssParser.parse (/Users/jcgm/Dev/Horchata/web/node_modules/next/node_modules/postcss/lib/parser.js:59:16)
at scssParse (/Users/jcgm/Dev/Horchata/web/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:335)
at new LazyResult (/Users/jcgm/Dev/Horchata/web/node_modules/next/node_modules/postcss/lib/lazy-result.js:122:16)
at Processor.process (/Users/jcgm/Dev/Horchata/web/node_modules/next/node_modules/postcss/lib/processor.js:33:12)
at CssMinimizerPlugin.optimizeAsset (/Users/jcgm/Dev/Horchata/web/node_modules/next/dist/build/webpack/plugins/css-minimizer-plugin.js:43:12)
at /Users/jcgm/Dev/Horchata/web/node_modules/next/dist/build/webpack/plugins/css-minimizer-plugin.js:77:55
at processTicksAndRejections (internal/process/task_queues.js:93:5)

Build failed because of webpack errors
jcgm@JoseloG-Macbook-Pro web % `

@theoludwig
Copy link

Hello! 👋

How did you solve your issue? @JoseGarciaM
I have a similar issue: HookWebpackError: Missed semicolon

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

2 participants