Expected an opening bracket
See original GitHub issueHello, I have an error while I build my Nuxt app. I use windiness version 3.1.7 with Nuxt-windicss version 1.2.3.
I have this error when I type Nuxt build
:
ERROR in ./virtual:windi.css (./node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!./node_modules/postcss-loader/src??ref--3-oneOf-1-2!./node_modules/windicss-webpack-plugin/dist/loaders/virtual-module.js!./virtual:windi.css)
Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: Expected an opening square bracket.
at /Users/arthurdanjou/Documents/Workspace/Ares/virtual:windi.css:456:1
at Root._error (/Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/parser.js:137:24)
at Root.error (/Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/selectors/root.js:43:25)
at Parser.error (/Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/parser.js:392:25)
at Parser.expected (/Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/parser.js:685:25)
at Parser.missingSquareBracket (/Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/parser.js:406:21)
at Parser.parse (/Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/parser.js:668:22)
at Parser.loop (/Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/parser.js:618:18)
at new Parser (/Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/parser.js:129:14)
at Processor._root (/Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/processor.js:47:22)
at Processor._runSync (/Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/processor.js:83:25)
at Processor.processSync (/Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/processor.js:177:27)
at getParsed (/Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss-minify-selectors/dist/index.js:34:59)
at /Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss-minify-selectors/dist/index.js:196:39
at /Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss/lib/container.js:243:18
at /Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss/lib/container.js:139:18
at Root.each (/Users/arthurdanjou/Documents/Workspace/Ares/node_modules/postcss/lib/container.js:105:16)
@ ./virtual:windi.css 4:14-233
@ ./src/plugins/main.ts
@ ./build/index.js
@ ./build/client.js
@ multi ./node_modules/@nuxt/components/lib/installComponents.js ./build/composition-api/register.js ./build/client.js
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Expected an opening square bracket (using postcss-purgecss ...
I've encountered this error when trying to build styles for production. I have a create-react-app with tailwindcss and postcss.
Read more >Bracket expected.... not sure where [closed] - Stack Overflow
So I'm doing an assignment on modular programing and here Im getting a bracket expected error. Here is the code: import java.util.
Read more >SearchError "expected an opening bracket for the rows" while ...
Looking at the gocb source code and searching this error message, it seems like couchbase is struggling to deserialize the json results? We...
Read more >A list of Common NetLogo error messages and how to fix them
Expected Command. This error occurs when you have one too many brackets. Each opening bracket must have a closing bracket, and vice versa;...
Read more >SyntaxError: missing } after function body - JavaScript | MDN
Check if any closing curly brackets or parenthesis are in the correct order. ... Oftentimes, there is a missing curly bracket in your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I fix the problem by adding a few configuration Nuxt side.
Here is the build configuration :
When I reduce my project to https://github.com/ArthurDanjou/Ares/tree/bug_windicss, all is working