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

Unresolvable import when using in webpack #41

Open
rushil-patel opened this issue Mar 6, 2022 · 1 comment
Open

Unresolvable import when using in webpack #41

rushil-patel opened this issue Mar 6, 2022 · 1 comment

Comments

@rushil-patel
Copy link

rushil-patel commented Mar 6, 2022

I'm trying to include this in my bundle and use it in my project however I'm getting many instances of this error when building my project with webpack:

Could not find module in path: 'es-feature-detection/builtins/~/utils/testExpression' relative to '/node_modules/es-feature-detection/builtins/Array.from.js'

Here is a repro sandbox link: https://codesandbox.io/s/react-webpack-demo-forked-bmrz6q?file=/src/App.jsx

Is there any additional configuration required to be able to use this?

@illusionalsagacity
Copy link

This is happening due to something with the tsconfig setup with paths, it's not properly compiling to relative imports and is keeping the ~ instead.

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

2 participants