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
ERROR Failed to compile with 1 errors 8:34:25 AM
error in ./node_modules/playroom/src/Playroom/RenderCode/RenderCode.js
Module parse failed: Unexpected token (9:43)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| scope
| }) {
> return scopeEval(code, { ...(useScope() ?? {}),
| ...scope,
| React
@ ./node_modules/playroom/src/Playroom/Preview.tsx 11:0-49 41:38-48
@ ./node_modules/playroom/src/preview.js
@ multi webpack-dev-server/client?http://localhost:4242 webpack/hot/dev-server ./node_modules/playroom/src/preview.js
apparently, there is an issue with the babel and webpack config but am not sure what
I am using babel present @babel/preset-typescript, @babel/env and @babel/preset-react with plugins @babel/plugin-proposal-optional-chaining and @babel/plugin-proposal-nullish-coalescing-operator
I'm facing the exact same issue but only in CI (circleci to be exact). I'm using playroom v0.23.0. I will try downgrading, but if anyone has a fix for this... would be awesome!
When running playroom, I get the error
apparently, there is an issue with the babel and webpack config but am not sure what
I am using babel present
@babel/preset-typescript
,@babel/env
and@babel/preset-react
with plugins@babel/plugin-proposal-optional-chaining
and@babel/plugin-proposal-nullish-coalescing-operator
here is my webpack config
And here is the playroom.config.js
and here is my tsconfig.json
Is there something in my configuration I need to change?
The text was updated successfully, but these errors were encountered: