Skip to content

Cannot find module '../lightningcss.linux-x64-gnu.node' when running Next.js project with TailwindCSS #70

@arawako

Description

@arawako

While trying to run in my local, I encounter the following error during npm run dev:

Error: ./app/globals.css
Error evaluating Node.js code
Error: Cannot find module '../lightningcss.linux-x64-gnu.node'
Require stack:
- ~/open-lovable/node_modules/lightningcss/node/index.js
- ~/open-lovable/node_modules/@tailwindcss/node/dist/index.js
- ~/open-lovable/node_modules/@tailwindcss/postcss/dist/index.js
- ~/open-lovable/.next/build/chunks/[turbopack]_runtime.js
- ~/open-lovable/.next/postcss.js
    [at Module._resolveFilename (node:internal/modules/cjs/loader:1410:15)]
    [at defaultResolveImpl (node:internal/modules/cjs/loader:1051:19)]
    [at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1056:22)]
    [at Module._load (node:internal/modules/cjs/loader:1219:37)]
    [at TracingChannel.traceSync (node:diagnostics_channel:322:14)]
    [at wrapModuleLoad (node:internal/modules/cjs/loader:238:24)]
    [at Module.require (node:internal/modules/cjs/loader:1493:12)]
    [at require (node:internal/modules/helpers:152:16)]
    [at Object.<anonymous> (~/open-lovable/node_modules/lightningcss/node/index.js:22:22)]
    [at Module._compile (node:internal/modules/cjs/loader:1738:14)]

Import trace:
  ./app/globals.css [Client Component Browser]
  ./app/layout.tsx [Server Component]
    at tr (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_next-devtools_index_82a36480.js:20168:60)
    at o6 (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_next-devtools_index_82a36480.js:2952:164)
    at iP (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_next-devtools_index_82a36480.js:4008:32)
    at i$ (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_next-devtools_index_82a36480.js:4305:28)
    at sv (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_next-devtools_index_82a36480.js:5791:21)
    at http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_next-devtools_index_82a36480.js:5782:40
    at sm (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_next-devtools_index_82a36480.js:5783:19)
    at sa (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_next-devtools_index_82a36480.js:5596:23)
    at sZ (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_next-devtools_index_82a36480.js:6520:124)
    at MessagePort._ (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_next-devtools_index_82a36480.js:8806:49)

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