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

Error: Cannot find module 'src/../package.json' #99

Closed
1 of 3 tasks
eamd-wq opened this issue Dec 29, 2023 · 1 comment
Closed
1 of 3 tasks

Error: Cannot find module 'src/../package.json' #99

eamd-wq opened this issue Dec 29, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@eamd-wq
Copy link

eamd-wq commented Dec 29, 2023

Steps to reproduce

  1. pnpm i
  2. pnpm dev

Error: Cannot find module 'src/../package.json'

May I ask if I have missed any key information?

node version: 18.18.2
pnpm version: 8.10.4

Expected behavior

null

Current behavior

null

Node.js version

18.18.2

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@kenso312
Copy link
Owner

kenso312 commented Jan 7, 2024

Thanks for the report, the issue seems to stem from the TSC path resolution problem, which specifically manifests in Windows environments. As I hadn't previously ran development mode on a Windows environment, this particular issue escaped my notice. While I didn't delve deeply into the problem, I did discover a workaround by appending "./" to the alias path records in the tsconfig.json file. The latest version is released and should be able to support Windows environment.

@kenso312 kenso312 closed this as completed Jan 7, 2024
@kenso312 kenso312 added the bug Something isn't working label Jan 7, 2024
@kenso312 kenso312 self-assigned this Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants