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
[legacy-post-process] unknown: Unknown property: Ll #2138
Comments
|
Yup, as soon as you use |
Is there a quick workaround possible here? I imagine the more proper fix is to allow hooking into babel to add custom, required plugins? (and these would have to be written to be compatible with babel standalone?) |
If you just need a quick way to get it to work, try this: npm i -D @babel/core @babel/preset-env module-alias then add this to your package.json: "_moduleAliases": {
"@babel/standalone": "node_modules/@babel/core",
"babel-preset-env": "node_modules/@babel/preset-env"
} and in your import 'module-alias/register' Now when |
That worked! Thanks a bunch. |
This was fixed by Babel and released in version 7.13.0: https://github.com/babel/babel/blob/main/CHANGELOG.md#bug-bug-fix-5 |
@tjk You can already remove the packages needed for the workaround, then just reinstall the dependencies and it'll work ( |
I'm trying to log out the code babel transform craps out on and noticed this (from monaco-editor dependency):
(essentially the code here: https://github.com/microsoft/vscode/blob/main/src/vs/editor/contrib/linesOperations/linesOperations.ts#L1058)
I looked in to https://babeljs.io/docs/en/babel-plugin-proposal-unicode-property-regex and tried to manually inject it into this plugin (I don't think there are hooks to configure babel standalone that is run?) but no success yet.
Not sure if I'm doing it wrong or if this is a red herring... any guidance would be useful (even tips on debugging).UPDATE: Not a red herring! Deleting those two lines using
\p
regex in monaco-editor caused the build to succeed! Now would just love your help to understand the underlying issue and hopefully the fix. :)PS: Thanks for this amazing software!
System Info
vite
version: 2.0.1The text was updated successfully, but these errors were encountered: