Open juniorforlife opened 3 months ago
Sourcemaps files are published to npm and generated automatically by the TS compiler.
I tried in a Remix app using Vite with latest release of remix-i18next I don't see any warning.
If you can create a minimal reproduction I can take a look.
This issue is related to incorrect map file reference when the npm package is being consumed:
As you can see in the above, the "sources":["../src/client.ts"]
is incorrectly pointing to a source file which is not available when using build distribution. One can manually patch this by changing these references to TS dictionary files that are available along side of the transpired ones like so: "sources":["./client.d.ts"]
By doing the above for all the files in the build and lib directory, these error go away.
I have the exact warnings with remix-i18next 6.3.0 with the latest stable Remix from their official page. when I run
npm run dev
This issue is related to incorrect map file reference when the rpm package is being consumed: As you can see in the above, the
"sources":["../src/client.ts"]
is incorrectly pointing to a source file which is not available when using build distribution. One can manually patch this by changing these references to TS dictionary files that are available along side of the transpired ones like so:"sources":["./client.d.ts"]
By doing the above for all the files in the build and lib directory, these error go away.
This solution by @bartekus solved the issue for me!
Am also getting sourcemap errors on every dev server start.
Same for me
Describe the bug
I'm using the latest version 6.3.0 of remix-i18next with Remix v2.10.3. When I run
bun dev
the terminal shows these warningsYour Example Website or App
private repo
Steps to Reproduce the Bug or Issue
bun dev
(remix vite:dev
)Expected behavior
No warning
Screenshots or Videos
No response
Platform
Additional context
No response