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
Hi
I'm using Sandpack 2 with CRA example with TS.
When I open my console - I see a lot of warnings
babel.7.20.13.min.js:14 Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-property-in-object since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.
The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
["@babel/plugin-proposal-private-property-in-object", { "loose": true }]
to the "plugins" section of your Babel config.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
I'm using Sandpack 2 with CRA example with TS.
When I open my console - I see a lot of warnings
Here is a reproduction
They only show in CRA template (the vite template does not have this problem).
You can see the warnings also in the official docs website when choosing react https://sandpack.codesandbox.io/docs/quickstart#preview
How to get rid of them?
Beta Was this translation helpful? Give feedback.
All reactions