Skip to content

[remix] Fix module file path resolution#9248

Closed
smaeda-ks wants to merge 2 commits intovercel:mainfrom
smaeda-ks:fix-remix-build
Closed

[remix] Fix module file path resolution#9248
smaeda-ks wants to merge 2 commits intovercel:mainfrom
smaeda-ks:fix-remix-build

Conversation

@smaeda-ks
Copy link
Copy Markdown
Member

This was introduced in: #8793
and causing some issues for remix users: https://github.com/orgs/vercel/discussions/1282

The underlying error is MODULE_NOT_FOUND.

import() should work with file:// URIs, however, since it's using typescript, the import gets compiled to require(), which does not support file:// protocol scheme.

kodiakhq bot pushed a commit that referenced this pull request Jan 18, 2023
Follow-up to #8793, which breaks dynamic import of the config file, causing some issues for remix users: https://github.com/orgs/vercel/discussions/1282

The underlying error is `MODULE_NOT_FOUND`.

`import()` should work with `file://` URIs, however, since it's using typescript, the `import` gets compiled to `require()`, which does not support `file://` protocol scheme.

Supersedes #9248.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: remix semver: patch PR contains bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants