cibernox / svelte-intl-precompile

I18n library for Svelte.js that analyzes your keys at build time for max performance and minimal footprint
https://svelte-intl-precompile.com
ISC License
274 stars 13 forks source link

New version causing errors #63

Closed MarcGodard closed 1 year ago

MarcGodard commented 1 year ago

Updating the following:

svelte-preprocess    5.0.3    5.0.4   5.0.4  node_modules/svelte-preprocess

Causing this error:

failed to load config from /home/marcgodard/Documents/Github/mg-web/vite.config.js
error when starting dev server:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './types.js' is not defined by "exports" in /home/marcgodard/Documents/Github/mg-web/node_modules/@formatjs/icu-messageformat-parser/package.json imported from /home/marcgodard/Documents/Github/mg-web/node_modules/babel-plugin-precompile-intl/dist/index.js
    at new NodeError (node:internal/errors:387:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:365:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:649:3)
    at packageResolve (node:internal/modules/esm/resolve:833:14)
    at moduleResolve (node:internal/modules/esm/resolve:901:20)
    at defaultResolve (node:internal/modules/esm/resolve:1115:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)

when tracing the issue:

└─┬ svelte-intl-precompile@0.12.1
  └─┬ babel-plugin-precompile-intl@0.5.2
    └── @formatjs/icu-messageformat-parser@2.4.0

Not sure how updating that other svelte lib is causing this...

simonkak commented 1 year ago

Hey, I'm facing the same issue. Were you able to resolve it?

MarcGodard commented 1 year ago

No, but the problem seems to be a deeper issue.

https://github.com/formatjs/formatjs/issues/4128

cibernox commented 1 year ago

I didn't look much into this, but @MarcGodard is there anything we could do in this repo to help or the ball is in formatjs's court?

MarcGodard commented 1 year ago

@cibernox I think its fixed now. Haven't tested yet.