question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lexical error - Unrecognized text after update to 2.0

See original GitHub issue

After updating the @nuxt/tailwind version, this error appears to me

Version

@nuxtjs/tailwindcss: 2.0.0 nuxt: 2.0.0 node: 12.16.3

Steps to reproduce

npm run build

What is Expected?

Build succeeded

What is actually happening?

ERROR in ./assets/css/tailwind.css (./node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!./node_modules/postcss-loader/src??ref--3-oneOf-1-2!./assets/css/tailwind.css)
Module build failed (from ./node_modules/postcss-loader/src/index.js):
JisonLexerError: Lexical error on line 1: Unrecognized text.

  Erroneous area:
1: 7rem; * calc(1 - var(--space-y-reverse))
^......^
    at /app/node_modules/tailwindcss/utilities.css:1:1
    at Object.parseError (/app/node_modules/postcss-calc/dist/parser.js:1200:15)
    at Object.lexer_parseError [as parseError] (/app/node_modules/postcss-calc/dist/parser.js:2333:44)

image

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

2reactions
andresfigueiracommented, May 20, 2021

I’m not sure why this is closed but here is the fix:

  • Go to your TailwindCSS config file, in my case is tailwind.js
  • Remove auto: 'auto' from theme.spacing

Fixed!

0reactions
knynkwlcommented, Mar 6, 2021

I figure out that has to do with:

full': '100%',
'auto': 'auto',
'initial': 'initial',
Read more comments on GitHub >

github_iconTop Results From Across the Web

Lexical error - Unrecognized text after update to 2.0 #104
After updating the @nuxt/tailwind version, this error appears to me Version @nuxtjs/tailwindcss: 2.0.0 nuxt: 2.0.0 node: 12.16.3 Steps to ...
Read more >
Lexical error on line 1: Unrecognized text. Erroneous area: 1: 0
When I run build, it fails because of Lexical error on line 1: Unrecognized text. Erroneous area: 1: 0 - none. No idea...
Read more >
postcss/postcss - Gitter
I have a problem with postcss-nested plugin. When I try to run storybook, it throws me an error referring to that I should...
Read more >
compilation issues [#3250654] | Drupal.org
Hi, @bensti this is the bootstrap issue it seems that when generating the CSS file, the compilation fails because of the variable without...
Read more >
Handlebars: Lexical Error Due To White Space That Doesn't ...
after update to 2.0. After updating the @nuxt/tailwind version, this error appears to me JisonLexerError: Lexical error on line 1: Unrecognized text.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found