When I ran pnpm build
, I got an error like this:
file:///home/miguel/w/fuels-ts/templates/vite/tailwind.config.js:2
module.exports = {
^
ReferenceError: module is not defined
When I ran pnpm build
, I got an error like this:
file:///home/miguel/w/fuels-ts/templates/vite/tailwind.config.js:2
module.exports = {
^
ReferenceError: module is not defined
Hey @miguel
I assume that you’re building from the root of the fuels-ts
repository?
I have not experienced this problem and our CI is currently passing.
May be worth cleaning the repository and doing a rebuild:
# This command will erase all uncommitted changes
# Please commit/stash before proceeding
git clean -fdx
pnpm install
pnpm build
Interesting.
Are you up to date with master
?
Are you up to date with
master
?
Yes.
Could you share you OS, Node Version, PNPM version?
If you rename the file to tailwind.config.cjs
does it build successfully?
OS: Ubuntu
Node Version: 22.12.0
PNPM Version: 9.12.2
Yes.
I’ve created a PR to change this file from JS to TS which should unblock you.
Please feel free to branch off ps/chore/favour-tailwind-ts
until it’s merge.