Commit d867bec
authored
Fixed
no issue
- when running `yarn dev` in the `signup-form` app, all instances of the
form failed to render with the error:
- `Uncaught SyntaxError: The requested module
'/@fs/Users/kevin/code/Ghost/ghost/i18n/index.js' does not provide an
export named 'default' (at app.tsx:2:8)`
- the problem was that vite loads the monorepo `i18n` package using
`/@fs/` and loads it as an ESM package despite being a CommonJS package
- adding `@tryghost/i18n` to vite's `optimizeDeps` config forces the
module to be transpiled so the import works correctlysignup-form dev server treating i18n as ESM (#25647)1 parent 734c1cd commit d867bec
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
0 commit comments