-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
What version of @astrojs/compiler are you using?
2.13.0
What package manager are you using?
bun1.3.7
What operating system are you using?
Linux
Describe the Bug
it got me worried for an hour i tried to change some logic but to no avail the error still persisted but then i looked again at the panic msg and it says missing something so i started removing code blocks and import statements.
i have no idea just know that i belive the parser state machine expects something else first instead of the import statement maybe something else.
panic: html: bad parser state: originalIM was set twice [recovered]
panic: interface conversion: string is not error: missing method Error
goroutine 7 [running]:
main.main.Transform.func1.1.1.1()
./astro-wasm.go:335 +0x5
panic({0x17940, 0x7b460})
runtime/panic.go:770 +0x1a
github.com/withastro/compiler/internal.(*parser).setOriginalIM(...)
github.com/withastro/compiler/internal/parser.go:545
github.com/withastro/compiler/internal.inBodyIM(0x1456360)
github.com/withastro/compiler/internal/parser.go:1106 +0x41a
github.com/withastro/compiler/internal.(*parser).parseCurrentToken(0x1456360)
github.com/withastro/compiler/internal/parser.go:3009 +0x12
github.com/withastro/compiler/internal.(*parser).parse(0x1456360)
github.com/withastro/compiler/internal/parser.go:3036 +0x3
github.com/withastro/compiler/internal.ParseWithOptions({0x7bca8, 0x1434100}, {0x1445e20, 0x1, 0x1})
github.com/withastro/compiler/internal/parser.go:3100 +0x13
main.main.Transform.func1.1.1()
./astro-wasm.go:340 +0x4
created by main.main.Transform.func1.1 in goroutine 6
./astro-wasm.go:331 +0x7
exit code: 2
19:20:36 [ERROR] [vite] β Build failed in 307ms
[UnknownCompilerError] [astro:build] Cannot read properties of undefined (reading 'exports')
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-ygrt2umj?file=src%2Fpages%2Fcheckthis.astro
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)