can't support "npm link" added local package in vite-cli

Viewed 828

I use the "npm link my-package" to redirect my node_module. But I failed to run successfully with "vite dev". Vite Could not resolve my local private package.

Uncaught TypeError: Cannot set property 'my-package' of undefined.

However, it can work if i use "npm i my-package" from npm server.

OS: windows

1 Answers
Related