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

ModuleBuildError: Module not found & can't resolve local packages on Windows #9366

Open
1 task done
kelvinsekx opened this issue Nov 1, 2024 · 10 comments
Open
1 task done
Labels
area: examples Improvements or additions to examples

Comments

@kelvinsekx
Copy link

kelvinsekx commented Nov 1, 2024

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://github.com/[kelvinsekx/turbo-example](https://github.com/kelvinsekx/turbo-example/tree/main)/tree/main

What package manager are you using / does the bug impact?

npm

What operating system are you using?

Windows

Which canary version will you have in your reproduction?

2.2.4-canary.5

Describe the Bug

Given the eslint and typescript packages,
their reference in the web apps don't resolve on windows. It returns a can't resolve correctly "@/acme/"

Screenshot (116)
Screenshot (117)
Screenshot (118)
Uploading Screenshot (119).p Screenshot (115) ng…

Expected Behavior

It should run successfully like it does on my WSL path

To Reproduce

create a simple turbo example with create turbo, run in on windows.

Additional context

No response

@kelvinsekx kelvinsekx added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage labels Nov 1, 2024
@tknickman
Copy link
Member

What node version are you using?

@kelvinsekx
Copy link
Author

What node version are you using?

The latest LTS

@kelvinsekx
Copy link
Author

What node version are you using?

22.11.0

@kelvinsekx
Copy link
Author

What node version are you using?

Hey, I'm tryna follow up

@chris-olszewski chris-olszewski added area: examples Improvements or additions to examples and removed kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage labels Nov 22, 2024
@anthonyshew
Copy link
Contributor

anthonyshew commented Nov 22, 2024

For context, this doesn't appear to be a Turborepo-specific issue. TypeScript and/or Node.js isn't resolving something correctly.

We're not able to reproduce this. Is this happening immediately after you use create-turbo? Is it still happening with the latest version of create-turbo, npx create-turbo@latest?

If so, would you be able to run npx turbo info and paste the output here?

Ultimately, module resolution isn't in scope for Turborepo, but I'd like to fix the example if there's something that can be fixed. I'm surprised this isn't resolving for you because we have lots of folks using create-turbo every day, including on Windows with npm.

@anthonyshew
Copy link
Contributor

This is only a low-fidelity guess but if you run npm cache clean --force and try again, do things work?

@kelvinsekx
Copy link
Author

For context, this doesn't appear to be a Turborepo-specific issue. TypeScript and/or Node.js isn't resolving something correctly.

We're not able to reproduce this. Is this happening immediately after you use create-turbo? Is it still happening with the latest version of create-turbo, npx create-turbo@latest`?

If so, would you be able to run npx turbo info and paste the output here?

Ultimately, module resolution isn't in scope for Turborepo, but I'd like to fix the example if there's something that can be fixed. I'm surprised this isn't resolving for you because we have lots of folks using create-turbo every day, including on Windows with npm.

I got an error

turbo 2.2.4-canary.5

  × missing tasks in project

Error:   × could not find task `info` in project

@anthonyshew
Copy link
Contributor

I apologize. turbo info is available above 2.3 so you'd need to run npx turbo@latest info --skip-infer.

Sorry about that!

@kelvinsekx
Copy link
Author

For context, this doesn't appear to be a Turborepo-specific issue. TypeScript and/or Node.js isn't resolving something correctly.
We're not able to reproduce this. Is this happening immediately after you use create-turbo? Is it still happening with the latest version of create-turbo, npx create-turbo@latest? If so, would you be able to run npx turbo infoand paste the output here? Ultimately, module resolution isn't in scope for Turborepo, but I'd like to fix the example if there's something that can be fixed. I'm surprised this isn't resolving for you because we have lots of folks usingcreate-turbo` every day, including on Windows with npm.

I got an error

turbo 2.2.4-canary.5

  × missing tasks in project

Error:   × could not find task `info` in project

I had to uninstall and install again

 WARNING  No locally installed `turbo` found. Using version: 2.3.1.
turbo 2.3.1

CLI:
   Version: 2.3.1
   Path to executable: C:\Users\UKUEJUBOLA KELVIN\AppData\Local\npm-cache\_npx\fbdd2f0c7d6dfb27\node_modules\turbo-windows-64\bin\turbo.exe
   Daemon status: Not running
   Package manager: npm

Platform:
   Architecture: x86_64
   Operating system: windows
   WSL: false
   Available memory (MB): 2071
   Available CPU cores: 4

Environment:
   CI: None
   Terminal (TERM): unknown
   Terminal program (TERM_PROGRAM): unknown
   Terminal program version (TERM_PROGRAM_VERSION): unknown
   Shell (SHELL): unknown
   stdin: false

@anthonyshew
Copy link
Contributor

This is only a low-fidelity guess but if you run npm cache clean --force and try again, do things work?

Have you had a chance to try this?

Or tried with a newer version of create-turbo?

I'm fairly certain at this point that there is an issue with your computer. I'm not seeing anyone reporting this error elsewhere and we can't reproduce this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: examples Improvements or additions to examples
Projects
None yet
Development

No branches or pull requests

4 participants