Open TheDutchCoder opened 11 months ago
It seems to be an even deeper issue, you can't use functions at all...
If I define the function in the file itself, vite crashes with a 500. It works if I remove the local function. Imports also don't work (same 500 crash):
// import
import { someFunc } from '~/lib/someFunc` // This crashes Vite
// local
const someFunc = () => 'hello' // Calling this crashes Vite (someFunc is not defined).
export default {
test: () => someFunc()
}
Reporting a bug?
Consider the following two function calls:
locationName(named('pointOfInterest'), false)
locationName({ pointOfInterest: named('pointOfInterest'), includeParent: false })
With origin2:
The former can be used in a locale file and works fine, but the latter will fail parsing and will add part of the function call at the end of the parsed string:
Expected behavior
foo({ a: 'a' })
to be compiled correctlyReproduction
Fiddle doesn't work ("Uncaught ReferenceError: VueI18n is not defined")
System Info
Screenshot
See main issue
Additional context
No response
Validations