Open vixalien opened 11 months ago
It seems I cannot import JSON files stored in node_modules
. I can correctly import JSON files stored locally.
facing the same issue.
Same problem here
Same issue here. Is there a workaround?
Not really a solution, but switching to Vite eliminates the issue. in production, I currently move the JSON files inside my source repo temporarily
This is quite annoying because it is blocking me to upgrade my entire project to ESM. Any news?
Has anyone found a solution to this? I've created an issue in the Shopify Remix template repo.
You can reproduce with this repo — https://github.com/gyenabubakar/remix-dev-bug-repro. Install the packages and run npm exec remix dev
.
Reproduction
Can't import JSON documents in app.
System Info
Used Package Manager
yarn
Expected Behavior
I would expect the import to be imported correctly.
Actual Behavior
It fails with the following error log: