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: Cannot run compiler playground locally #29137

Closed
abizek opened this issue May 17, 2024 · 2 comments
Closed

Bug: Cannot run compiler playground locally #29137

abizek opened this issue May 17, 2024 · 2 comments
Labels
Component: Optimizing Compiler Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@abizek
Copy link
Contributor

abizek commented May 17, 2024

After installing deps with yarn in the compiler workspace and building the babel plugin, next throws this error on running yarn dev in playground

Compiling /page ...
 ⨯ ./app/page.tsx
Error: Cannot find module '.../react/compiler/node_modules/babel-plugin-react-compiler/dist/index.js'. Please verify that the package.json has a valid "main" entry

#29122 should fix it but for some reason, it doesn't.

I was able to get it running locally by doing a yarn link on the babel plugin. Is this the intended way? Can we use the workspace to link the built plugin?

cc: @poteto

@abizek abizek added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label May 17, 2024
@josephsavona
Copy link
Contributor

Thanks for reporting. You should be able to run the playground locally with yarn dev from the compiler/ directory. Does that work?

@abizek
Copy link
Contributor Author

abizek commented May 18, 2024

Yes! It works 😃

@abizek abizek closed this as completed May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Optimizing Compiler Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

3 participants