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

Built files have '__wds-outside-root__' added to the name even though they are compiled and in the same source tree #2681

Open
slalomzacharyd opened this issue Mar 21, 2024 · 0 comments

Comments

@slalomzacharyd
Copy link

slalomzacharyd commented Mar 21, 2024

When trying to get this working for my typescript/jsx project, compiled dependencies are given the wrong url address. Removing the 'wds-outside-root' address shows the correct file.

Screenshot 2024-03-21 at 21 44 05

The wrong import in the test, gotten from the console.
Screenshot 2024-03-21 at 21 45 08

If you correct the import, you get the compiled file.
Screenshot 2024-03-21 at 21 45 19

Repro:

  1. Unzip the repro
  2. npm install
  3. npm test --watch
  4. d to open the browser in bugging mode
  5. Notice the testUtils.tsx file returns a 404.
  6. If you remove __wds-outside-root__ the file exists and is compiled.

repro.zip

Expected: This should just work.

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

1 participant