Skip to content

Can't require() plugin after upgrading to v0.5.x #207

Closed
@Paget96

Description

@Paget96

What version of prettier-plugin-tailwindcss are you using?
v0.5.3

What version of Tailwind CSS are you using?
v3.3.3

What version of Node.js are you using?
19.5.0

What package manager are you using?
npm

What operating system are you using?
Windows 11

Describe your issue
I have just updated from v0.4.0 to 0.5.3 and this issue came when we do try to run the site

`
./app/global.css.webpack[javascript/auto]!=!../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[2].oneOf[13].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[2].oneOf[13].use[3]!./app/global.css
D:\Development\EmploHub\Emplohub\node_modules\prettier-plugin-tailwindcss\dist\index.mjs:4
const require=_module2.createRequire.call(void 0, import.meta.url)
^

SyntaxError: Identifier 'require' has already been declared
`

We are using NextJs 13.4.19

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions