Skip to content

Conflicts in the taiwindcss config file . #67

@Clasherzz

Description

@Clasherzz

Error Explained

The file in tailwindcss currently is written in the CommonJS format. But according to package.json and tsconfig.json it must be in ESM.

Steps to reproduce error

npm install
npm run build

Expected Behaviour

must be build without error resulting in the dist file

Actual Behaviour / relevant logs

Causes following error:

ReferenceError: module is not defined
    at file:///D:/contributions/Social-Street-Smart/NewClient/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)

Metadata

Metadata

Assignees

No one assigned

    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