nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[Create React App] Rendering White Page

Open Dhananjay-JSR opened this issue 2 years ago • 15 comments

The Issue begins with react-scripts v5 breaking NextUI Render Components

Temporal Solution :- Downgrade react-script to v4 from the package.json

Dhananjay-JSR avatar Jan 29 '22 19:01 Dhananjay-JSR

@Dhananjay-JSR I've experienced something similar with a Create React App; the app executes successfully however a white screen is rendered. what solutions have you tried to implement?

Samsonroyal avatar Jan 29 '22 20:01 Samsonroyal

@Dhananjay-JSR I've experienced something similar with a Create React App; the app executes successfully however a white screen is rendered. what solutions have you tried to implement?

The Only temporal solution to this is to manually change react-script version to 4.0.0 in package.json file in your root directory and then execute command npm install

Dhananjay-JSR avatar Jan 29 '22 21:01 Dhananjay-JSR

Thanks let me try that. 🤝

Samsonroyal avatar Jan 29 '22 21:01 Samsonroyal

I renamed from "react-scripts": "5.0.0" to "react-scripts": "4.0.0" in package.json and executed npm install and it worked!!

aryamitra06 avatar Jan 30 '22 03:01 aryamitra06

hmm I'm using CRA with Typescript and the manual change to 4.0.0 caused me to get other errors. Instead I used npm install react-scripts@4 and that seems to have fixed it... for now.

nckblu avatar Feb 02 '22 15:02 nckblu

@jrgarciadev Hi! Do you have any news?

notmedia avatar Feb 04 '22 13:02 notmedia

Hello, this is a much needed fix. TailwindCSS doesn't work with react-scripts@4 and I want use NextUI with Tailwind. I currently can't.

Keyruu avatar Feb 08 '22 11:02 Keyruu

Hey guys, we are doing our best to fix this as soon as possible, thanks for the patience 🙏🏻

jrgarciadev avatar Feb 16 '22 19:02 jrgarciadev

I'm at main branch and got this error,

./node_modules/@nextui-org/react/node_modules/@react-aria/utils/dist/module.js 144:211
Module parse failed: Unexpected token (144:211)
File was processed with these loaders:
 * ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|   let filteredProps = {};
|
>   for (const prop in props) if (Object.prototype.hasOwnProperty.call(props, prop) && ($7efcb978e02fb174$var$DOMPropNames.has(prop) || labelable && $7efcb978e02fb174$var$labelablePropNames.has(prop) || propNames?.has(prop) || $7efcb978e02fb174$var$propRe.test(prop))) filteredProps[prop] = props[prop];
|
|   return filteredProps;

kaichaosun avatar Mar 29 '22 08:03 kaichaosun

I'm having the same issue as @kaichaosun with version 1.0.6-beta.5

EDIT: It appears downgrading to version 1.0.2-beta.4 and nuking & reinstalling node_modules resolves this, FYI.

nalinbhardwaj avatar Apr 03 '22 04:04 nalinbhardwaj

I'm using 1.0.6-beta.5 with tailwind and having the same issue. However if you exclude @tailwind/base from your build it works fine.

lightify97 avatar Apr 03 '22 16:04 lightify97

Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention? > This issue will be closed in 10 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 02 '22 17:06 stale[bot]

Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.

stale[bot] avatar Jun 17 '22 17:06 stale[bot]

Any update on this?

MobileAppVault avatar Jul 03 '22 20:07 MobileAppVault

Hey guys 🙌🏼, could you try this again using the latest version (v10) and react 17?

jrgarciadev avatar Aug 30 '22 13:08 jrgarciadev