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

build faild !! cannot build source code while executing yarn build #411

Open
albert-immigrant opened this issue Oct 10, 2024 · 2 comments
Open
Assignees

Comments

@albert-immigrant
Copy link

albert-immigrant commented Oct 10, 2024

While i build react-complex-tree from source code
I got error message
"Type 'unknown' is not assignable to type 'ReactNode' "

src/environmentActions/EnvironmentActionsProvider.tsx:260:7

src/treeActions/TreeActionsProvider.tsx:100:7

Is there any body got the same problem?

how to fix this error?

@albert-immigrant albert-immigrant changed the title cannot build source code in wobstorm build faild !! cannot build source code in wobstorm Oct 10, 2024
@albert-immigrant albert-immigrant changed the title build faild !! cannot build source code in wobstorm build faild !! cannot build source code wile executing yarn build Oct 10, 2024
@albert-immigrant albert-immigrant changed the title build faild !! cannot build source code wile executing yarn build build faild !! cannot build source code while executing yarn build Oct 10, 2024
@lukasbach
Copy link
Owner

That error shouldn't occur during build. Can you share the versions of nodejs and yarn you are using, as well as which command you ran in which folder, and the full error log? Thanks!

@lukasbach
Copy link
Owner

I actually just encountered a similar problem, that occured when I ran yarn in a folder that was not the root folder, causing yarn to ignore volta config in the root folder, thus using an old yarn version and ignoring the lock file because it didn't understand it and then used an incorrect version of react, which caused the same error message. So if you encounter this, make sure you have yarn >3 installed, ideally just have volta installed because that will make sure that you use the correct version of nodejs and yarn, and make sure to run the yarn install command from the top level folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants