Skip to content
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

does not work with dynamic import #101

Open
taozhou-glean opened this issue Feb 14, 2023 · 1 comment
Open

does not work with dynamic import #101

taozhou-glean opened this issue Feb 14, 2023 · 1 comment

Comments

@taozhou-glean
Copy link

my folder structure looks like following:

- data
  - web
- web
  - data (symlink to data/web)
  - other things
  - tsconfig.json

and with tsconfig setting the right path for web/*: ["./web/*"], I am getting Module not found: Error: Can't resolve 'web/data infor usage likeimport {} from "web/data/xxx". But switch to use alias` does work just fine, so it seems that the plugin does not work great with symlinks

@taozhou-glean
Copy link
Author

taozhou-glean commented Mar 18, 2023

I think the issue might be a more about dynamic import, for more context, this is for making it work with lingui, an i18n framework, https://js-lingui-qmrh9gqtf-lingui.vercel.app/guides/dynamic-loading-catalogs, looks like the dynamic import is the problem: web/data/${locale}/message

@taozhou-glean taozhou-glean changed the title does not work with symlinks does not work with dynamic import Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant