Hi, I’ve just created a new project using RW 6.0.5:
$ yarn create redwood-app --ts ./redwoodblog
Then, I setup Tailwind using:
$ yarn rw setup ui tailwindcss
Everything looks good, but I found this problem trying to create a new page:
$ yarn redwood generate page home /
← Reverted because: Error applying template at
/home/fernando/git/redwoodblog/node_modules/@redwoodjs/cli/dist/commands/generate/page/templates/page.tsx.template for home: require() of ES Module
/home/fernando/git/redwoodblog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs not supported.
Instead change the require of /home/fernando/git/redwoodblog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs to a dynamic import() which is
available in all CommonJS modules.
◼ Updating routes file...
◼ Generating types...
◼ One more thing...
Error applying template at /home/fernando/git/redwoodblog/node_modules/@redwoodjs/cli/dist/commands/generate/page/templates/page.tsx.template for home: require() of ES Module /home/fernando/git/redwoodblog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs not supported.
Instead change the require of /home/fernando/git/redwoodblog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs to a dynamic import() which is available in all CommonJS modules.
I think this is a minor issue, but I don’t have enough skills to resolve it.
Any idea how to fix this?