You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed nextui in the yarn berry monorepo environment using turbo. But when I run it, an error occurs.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
install the turbo repo environment. yarn dlx create-turbo@latest
migrate the monorepo environment from yarn classic to yarn berry.
yarn dlx create-next-app@latest apps/my-app
install a new nextui project in my-app apps. npm install @nextui-org/react framer-motion
Tailwind CSS Setup and Provider Setup together.
run the project with next dev.
./app/globals.css.webpack[javascript/auto]!=!../../.yarn/__virtual__/next-virtual-71db4a0ca8/4/.yarn/berry/cache/next-npm-14.2.14-ec3d370484-10c0.zip/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../.yarn/__virtual__/next-virtual-71db4a0ca8/4/.yarn/berry/cache/next-npm-14.2.14-ec3d370484-10c0.zip/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css
ReferenceError: nextui is not defined
Import trace for requested module:
./app/globals.css.webpack[javascript/auto]!=!../../.yarn/__virtual__/next-virtual-71db4a0ca8/4/.yarn/berry/cache/next-npm-14.2.14-ec3d370484-10c0.zip/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../.yarn/__virtual__/next-virtual-71db4a0ca8/4/.yarn/berry/cache/next-npm-14.2.14-ec3d370484-10c0.zip/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css
./app/globals.css
....
ReferenceError: nextui is not defined
Expected behavior
It doesn’t seem like the error is occurring due to the Turbo monorepo environment. I think the issue might be with yarn berry not being able to fetch "./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}", or perhaps the error is happening because yarn berry doesn’t use node_modules.
Screenshots or Videos
No response
Operating System Version
macOS
Browser
Chrome
The text was updated successfully, but these errors were encountered:
NextUI Version
2.4.8
Describe the bug
I installed nextui in the
yarn berry
monorepo environment usingturbo
. But when I run it, an error occurs.Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
yarn dlx create-turbo@latest
nextui
project inmy-app
apps.npm install @nextui-org/react framer-motion
Tailwind CSS Setup
andProvider Setup
together.Expected behavior
It doesn’t seem like the error is occurring due to the Turbo monorepo environment. I think the issue might be with yarn berry not being able to fetch "./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}", or perhaps the error is happening because yarn berry doesn’t use node_modules.
Screenshots or Videos
No response
Operating System Version
macOS
Browser
Chrome
The text was updated successfully, but these errors were encountered: