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

Got error on build #167

Open
chalist opened this issue Apr 3, 2022 · 0 comments
Open

Got error on build #167

chalist opened this issue Apr 3, 2022 · 0 comments

Comments

@chalist
Copy link

chalist commented Apr 3, 2022

Describe the bug
When I use yarn build I got this error:

ERROR in ./styles/tailwind.css (./node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-2!./node_modules/postcss-loader/src??ref--3-oneOf-1-3!./node_modules/windicss-webpack-plugin/dist/loaders/windicss-css.js!./styles/tailwind.css)
Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: Expected an attribute.
    at /app/styles/tailwind.css:60:1
    at Root._error (/app/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/parser.js:137:24)
    at Root.error (/app/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/selectors/root.js:43:25)
    at Parser.error (/app/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/parser.js:392:25)
    at Parser.expected (/app/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/parser.js:685:25)
    at Parser.attribute (/app/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/parser.js:162:25)
    at Parser.parse (/app/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/parser.js:640:22)
    at Parser.loop (/app/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/parser.js:618:18)
    at new Parser (/app/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/parser.js:129:14)
    at Processor._root (/app/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/processor.js:47:22)
    at Processor._runSync (/app/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/processor.js:83:25)
    at Processor.processSync (/app/node_modules/postcss-minify-selectors/node_modules/postcss-selector-parser/dist/processor.js:177:27)
    at getParsed (/app/node_modules/postcss-minify-selectors/dist/index.js:34:59)
    at /app/node_modules/postcss-minify-selectors/dist/index.js:196:39
    at /app/node_modules/postcss/lib/container.js:243:18
    at /app/node_modules/postcss/lib/container.js:139:18
    at Root.each (/app/node_modules/postcss/lib/container.js:105:16)
 @ ./styles/tailwind.css 4:14-229
 @ ./.nuxt/App.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/@nuxt/components/lib/installComponents.js ./.nuxt/client.js

 FATAL  Nuxt build error                                                                                    20:44:34

  at WebpackBundler.webpackCompile (node_modules/@nuxt/webpack/dist/webpack.js:2127:21)
  at async WebpackBundler.build (node_modules/@nuxt/webpack/dist/webpack.js:2076:5)
  at async Builder.build (node_modules/@nuxt/builder/dist/builder.js:327:5)
  at async Object.run (node_modules/@nuxt/cli/dist/cli-build.js:110:7)
  at async NuxtCommand.run (node_modules/@nuxt/cli/dist/cli-index.js:413:7)


   ╭─────────────────────────────╮
   │                             │
   │   ✖ Nuxt Fatal Error        │
   │                             │
   │   Error: Nuxt build error   │
   │                             │
   ╰─────────────────────────────╯

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

To Reproduce
Steps to reproduce the behavior:

  1. open https://codesandbox.io/s/mystifying-bash-wj9p7i?file=/nuxt.config.js
  2. Run at new terminal yarn build

Expected behavior
Build without error

Screenshots
image

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