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

[Bug]: Unable to import external module with webpackIgnore #14849

Open
Dreamsorcerer opened this issue Jan 14, 2024 · 7 comments
Open

[Bug]: Unable to import external module with webpackIgnore #14849

Dreamsorcerer opened this issue Jan 14, 2024 · 7 comments

Comments

@Dreamsorcerer
Copy link

Dreamsorcerer commented Jan 14, 2024

Version

29.7

Steps to reproduce

In my code I have:
import(/* webpackIgnore: true */ js_module)

Expected behavior

Import the module how a browser would import the module, based on the presence of the webpackIgnore comment. i.e. Making a network request to the provided URL.

Actual behavior

It attempts to import a local module:
Cannot find module 'http://localhost:8080/admin/js' from 'src/App.js'

@Dreamsorcerer
Copy link
Author

Maybe this relates to #9430, but I'm not clear exactly how much it overlaps.

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Feb 20, 2024
@Dreamsorcerer
Copy link
Author

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot removed the Stale label Feb 22, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Mar 23, 2024
@Dreamsorcerer
Copy link
Author

...

@github-actions github-actions bot removed the Stale label Mar 26, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Apr 25, 2024
@Dreamsorcerer
Copy link
Author

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot removed the Stale label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant