Replies: 1 comment 6 replies
-
@Dyvd4 Which version are you on? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Docs state that it's possible to import npm packages by simply natively importing them. However, I get the following errors:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'zod' imported from C:\Users\David.kenv\kenvs\script-kit-private\scripts\test.ts
Error: EPERM: operation not permitted, symlink 'C:\Users\David\AppData\Local\Temp\kit\test' -> 'C:\Users\David.kenv\tmp\test'
by simply running the following script:
Is it a permission issue? Couldn't find missing permissions for my user though. I'm running on Windows 11.
Another issue was that vscode was unable to pick up the types of the package link:
When I was going to the references (via ctrl+click), I was navigated to the
index.js
file rather than the type definitions. Solved it by adding atsconfig.json
as a workaround to the root of the.kenv
dir:Expected it to work out of the box though, am I doing sth. wrong? It's a fresh installation on Windows 11
Beta Was this translation helpful? Give feedback.
All reactions