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

Fix incorrect path resolution in generate-icon-types.ts for Windows #513

Closed
shivarm opened this issue Jan 12, 2025 · 2 comments · Fixed by #514
Closed

Fix incorrect path resolution in generate-icon-types.ts for Windows #513

shivarm opened this issue Jan 12, 2025 · 2 comments · Fixed by #514

Comments

@shivarm
Copy link
Contributor

shivarm commented Jan 12, 2025

I followed Contributing.md

PS C:\Users\shivams\Desktop\open-source\zudoku> nx run zudoku:build

> nx run zudoku:"generate:icon-types"

> [email protected] generate:icon-types C:\Users\shivams\Desktop\open-source\zudoku\packages\zudoku
> tsx ./scripts/generate-icon-types.ts
node:fs:442
    return binding.readFileUtf8(path, stringToFlags(options.flag));
                   ^
Error: ENOENT: no such file or directory, open 'C:\C:\Users\shivams\Desktop\open-source\zudoku\node_modules\.pnpm\[email protected][email protected]\node_modules\lucide-react\dynamicIconImports.js'
    at readFileSync (node:fs:442:20)
    at <anonymous> (C:\Users\shivams\Desktop\open-source\zudoku\packages\zudoku\scripts\generate-icon-types.ts:7:21)
    at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\C:\\Users\\shivams\\Desktop\\open-source\\zudoku\\node_modules\\.pnpm\\[email protected][email protected]\\node_modules\\lucide-react\\dynamicIconImports.js'
}
Node.js v22.13.0
Copy link

linear bot commented Jan 12, 2025

@shivarm
Copy link
Contributor Author

shivarm commented Jan 13, 2025

@dan-lee @ntotten I have a fix that works, and resolve path currectly for Windows system.

@shivarm shivarm changed the title Zudoku build failing locally Fix incorrect path resolution in generate-icon-types.ts for Windows Jan 13, 2025
@shivarm shivarm changed the title Fix incorrect path resolution in generate-icon-types.ts for Windows Fix incorrect path resolution in generate-icon-types.ts for Windows Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant