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
After upgrading plugin-react-refresh from 1.2.2 to 1.3.0 I started getting errors with my React class components using MobX and @observer decorators.
@vitejs/plugin-react-refresh": "1.2.2"
Works as expected, no errors.
@vitejs/plugin-react-refresh": "1.3.0"
xx:xx:xx [vite] Internal server error: path\file1.tsx: Support for the experimental syntax 'classProperties' isn't currently enabled (27:17):
xx:xx:xx [vite] Internal server error: path\file2.tsx: Support for the experimental syntax 'decorators-legacy' isn't currently enabled (26:1):
After upgrading plugin-react-refresh from 1.2.2 to 1.3.0 I started getting errors with my React class components using MobX and @observer decorators.
@vitejs/plugin-react-refresh": "1.2.2"
Works as expected, no errors.
@vitejs/plugin-react-refresh": "1.3.0"
Temporary fix
Removing
enforce: 'pre',
insidepackages/plugin-react-refresh/index.js
makes the code compile again:4037c55#diff-e6fc286e2eecd57ae2d4ddbe88fda7c47fdce8fb2011a712dab756dda4ea8131R44
The text was updated successfully, but these errors were encountered: