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

Parcel v2 fails to reload for relative path imports outside the root directory #8968

Closed
escherlies opened this issue Apr 28, 2023 · 1 comment

Comments

@escherlies
Copy link

Description:

I am using Parcel v2 for my web application, and I'm encountering an issue where the bundler fails to reload when I import modules using relative paths that point outside the root directory of my project. This issue is causing development delays, as I am unable to see changes made to the imported modules without manually restarting the bundler.

Steps to reproduce:

  1. Set up a new project with Parcel v2
  2. Create a file outside the root directory, e.g., ../external-dir/module.js
  3. Import this file in the project using a relative path, e.g., import myModule from '../external-dir/module.js';
  4. Start the development server with parcel serve index.html
  5. Make changes to the module.js file and save

Expected behavior:

When I save changes made to module.js, I expect Parcel to automatically reload the development server and reflect the changes in the browser.

Actual behavior:

Parcel does not reload the development server after saving changes to module.js. I need to manually restart the bundler to see the changes in the browser.

@mischnic
Copy link
Member

Duplicate of #4332

@mischnic mischnic marked this as a duplicate of #4332 Apr 28, 2023
@mischnic mischnic closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2023
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