Errors during deployment; tailwind.config.js module not defined

ReferenceError: module is not defined

at file:///vercel/path0/tailwind.config.js:2:1

at ModuleJobSync.runSync (node:internal/modules/esm/module_job:395:35)

at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:329:47)

at loadESMFromCJS (node:internal/modules/cjs/loader:1414:24)

at Module._compile (node:internal/modules/cjs/loader:1547:5)

at Object…js (node:internal/modules/cjs/loader:1677:16)

at Module.load (node:internal/modules/cjs/loader:1318:32)

at Function._load (node:internal/modules/cjs/loader:1128:12)

at TracingChannel.traceSync (node:diagnostics_channel:322:14)

at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)

Hi, @kwame360! Welcome to the Vercel Community :smile:

Without seeing your code, it’s difficult to help out here. But we do have a community post on how to debug these kinds of errors! Hopefully it’s helpful :pray:

I have the same issue. Posted here Build Works Locally but Fails in Vercel Production - #10 by hithesh98

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.