-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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: vite 5.3.0 fails ionic build command #17466
Comments
May likely be related to #14221 |
Not sure it's entirely the same, but i got an error at build time too with latest 5.3.0:
|
(Searching recent commits brought me here) I am not sure if I am hitting exactly the same issue, but I saw a very similar output:
The syntax that is broken is from a codemirror package: LanguageDescription.of({
name: "Go",
extensions: ["go"],
load() {
return import("@codemirror/lang-go").then(m => m.go())
}
}), Full code could be found here: https://github.com/codemirror/language-data/blob/main/src/language-data.ts |
More interestingly, if I changed the syntax to something like this: LanguageDescription.of({
name: "Go",
extensions: ["go"],
load() {
return import("@codemirror/lang-go").then(m => { return m.go() })
}
}), It can build without any problem. However I will then hit a runtime error: I am not sure if it's related to #14221 or #16562 cc @bluwy just in case you have any insights, thanks. |
@cyanzhong Can you open a new issue with a repro using codemirror? I tested locally and can't bring up any errors. |
@bluwy Thank you for your quick response. Yeah I've figured out a bit more info and opened #17478. The Thank you! |
Describe the bug
running ionic build with vite 5.3.0 gives error, 5.2.11 works.
Reproduction
......
Steps to reproduce
in package.json use vite: "vite": "5.3.0"
and now with vite 5.2.11
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: