最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Tailwind CSS build error | Acorn unexpected token 26:33 - Stack Overflow

programmeradmin5浏览0评论

I tried to build tailwindcss on default css but this thing appears....


   tailwindcss 2.0.2

   ? Building from default CSS... (No input file provided)

   ? SyntaxError: Unexpected token (26:33)
    at _class.pp$4.raise (C:\xampp\htdocs\www\css\node_modules\acorn\dist\acorn.
js:2927:15)
    at _class.pp.unexpected (C:\xampp\htdocs\www\css\node_modules\acorn\dist\aco
rn.js:698:10)
    at _class.pp.expect (C:\xampp\htdocs\www\css\node_modules\acorn\dist\acorn.j
s:692:28)
    at _class.pp$3.parseObj (C:\xampp\htdocs\www\css\node_modules\acorn\dist\aco
rn.js:2563:14)
    at _class.pp$3.parseExprAtom (C:\xampp\htdocs\www\css\node_modules\acorn\dis
t\acorn.js:2302:19)
    at _class.parseExprAtom (C:\xampp\htdocs\www\css\node_modules\acorn-node\lib
\dynamic-import\index.js:77:117)
    at _class.pp$3.parseExprSubscripts (C:\xampp\htdocs\www\css\node_modules\aco
rn\dist\acorn.js:2129:21)
    at _class.pp$3.parseMaybeUnary (C:\xampp\htdocs\www\css\node_modules\acorn\d
ist\acorn.js:2106:19)
    at _class.parseMaybeUnary (C:\xampp\htdocs\www\css\node_modules\acorn-node\l
ib\private-class-elements\index.js:122:54)
    at _class.pp$3.parseExprOps (C:\xampp\htdocs\www\css\node_modules\acorn\dist
\acorn.js:2041:21)

I tried reinstalling it but nothing changed... how do i fix this?

I tried to build tailwindcss on default css but this thing appears....


   tailwindcss 2.0.2

   ? Building from default CSS... (No input file provided)

   ? SyntaxError: Unexpected token (26:33)
    at _class.pp$4.raise (C:\xampp\htdocs\www\css\node_modules\acorn\dist\acorn.
js:2927:15)
    at _class.pp.unexpected (C:\xampp\htdocs\www\css\node_modules\acorn\dist\aco
rn.js:698:10)
    at _class.pp.expect (C:\xampp\htdocs\www\css\node_modules\acorn\dist\acorn.j
s:692:28)
    at _class.pp$3.parseObj (C:\xampp\htdocs\www\css\node_modules\acorn\dist\aco
rn.js:2563:14)
    at _class.pp$3.parseExprAtom (C:\xampp\htdocs\www\css\node_modules\acorn\dis
t\acorn.js:2302:19)
    at _class.parseExprAtom (C:\xampp\htdocs\www\css\node_modules\acorn-node\lib
\dynamic-import\index.js:77:117)
    at _class.pp$3.parseExprSubscripts (C:\xampp\htdocs\www\css\node_modules\aco
rn\dist\acorn.js:2129:21)
    at _class.pp$3.parseMaybeUnary (C:\xampp\htdocs\www\css\node_modules\acorn\d
ist\acorn.js:2106:19)
    at _class.parseMaybeUnary (C:\xampp\htdocs\www\css\node_modules\acorn-node\l
ib\private-class-elements\index.js:122:54)
    at _class.pp$3.parseExprOps (C:\xampp\htdocs\www\css\node_modules\acorn\dist
\acorn.js:2041:21)

I tried reinstalling it but nothing changed... how do i fix this?

Share Improve this question asked Jan 6, 2021 at 8:56 S BS B 291 silver badge2 bronze badges 1
  • Hi there! Can you show us what's on line 26? – Milkmannetje Commented Jan 6, 2021 at 9:09
Add a ment  | 

1 Answer 1

Reset to default 7

After wasting a couple of days, I found that there was a simple typo in my tailwind.config.js

    '224': '56rem',
    '256': '64rem'.
    '304': '76rem',

I suggest checking the line 26 within your own config.

Good luck!

发布评论

评论列表(0)

  1. 暂无评论