Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Nextui project compile failed when run dev #126

Open
MYmyRedustY opened this issue Dec 24, 2024 · 0 comments
Open

[BUG] - Nextui project compile failed when run dev #126

MYmyRedustY opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MYmyRedustY
Copy link

NextUI CLI Version

0.5.1

Describe the bug

Use the V0.5.1 nextui-cli create project and run dev seems always error,

./styles/globals.css
Error evaluating Node.js code
ReferenceError: module is not defined
    [at file:///E:/xiaoyi/projectA/nextui-pages/tailwind.config.js:4: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:1708:10)]
    [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)]
    [at Module.require (node:internal/modules/cjs/loader:1340:12)]
    [at require (node:internal/modules/helpers:138:16)]
    [at E:\xiaoyi\projectA\nextui-pages\node_modules\tailwindcss\lib\lib\load-config.js:50:27]
    [at loadConfig (E:\xiaoyi\projectA\nextui-pages\node_modules\tailwindcss\lib\lib\load-config.js:54:6)]
    [at getTailwindConfig (E:\xiaoyi\projectA\nextui-pages\node_modules\tailwindcss\lib\lib\setupTrackingContext.js:71:116)]
    [at E:\xiaoyi\projectA\nextui-pages\node_modules\tailwindcss\lib\lib\setupTrackingContext.js:100:92]
    [at E:\xiaoyi\projectA\nextui-pages\node_modules\tailwindcss\lib\processTailwindFeatures.js:46:11]
    [at plugins (E:\xiaoyi\projectA\nextui-pages\node_modules\tailwindcss\lib\plugin.js:38:69)]
    at LazyResult.runOnRoot (node_modules/postcss/lib/lazy-result.js:329:16) [E:\xiaoyi\projectA\nextui-pages\.next\chunks\node_modules_53c1e4._.js:6170:24]
    at LazyResult.runAsync (node_modules/postcss/lib/lazy-result.js:258:26) [E:\xiaoyi\projectA\nextui-pages\.next\chunks\node_modules_53c1e4._.js:6109:32]
    at LazyResult.async (node_modules/postcss/lib/lazy-result.js:160:30) [E:\xiaoyi\projectA\nextui-pages\.next\chunks\node_modules_53c1e4._.js:6032:36]
    at LazyResult.then (node_modules/postcss/lib/lazy-result.js:404:17) [E:\xiaoyi\projectA\nextui-pages\.next\chunks\node_modules_53c1e4._.js:6230:21]
    [at process.processTicksAndRejections (node:internal/process/task_queues:105:5)]

Steps to Reproduce the Bug or Issue

  1. run npm install -g nextui-cli
  2. run nextui init nextui-pages
  3. run cd nextui-pages&npm install
  4. run npm run dev

Expected behavior

Page opens normally

Screenshots or Videos

image

Operating System Version

windows 23H2

@MYmyRedustY MYmyRedustY added the bug Something isn't working label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant