-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
An issue with Pinia on Deno #20375
Comments
@bartlomieju, as far as I know Deno projects generally don't require a JS bundler, which means we can rewrite this example without Vite. Given that pinia is not built on the Node API per its creator, we could consider closing this issue before releasing Deno v2, right? |
The error is thrown by the transpilation pipeline in We have a plugin for vite here https://github.com/denoland/deno-vite-plugin that teaches vite Deno-specific resolution everywhere else though. |
So, we can technically use a different bundler which doesn't rely on |
Hi,
1- After following the example of Deno with Vue, I attempted to place every dependency in
deps.ts
as per conventional practice. Initially, thedefineConfig
function fromvite
was added, and everything seemed to be working fine at this stage.File:
deps.ts
:File:
vite.config.mts
:At this point, the app runs fine. However, when attempting to use the
vue
function from thevite-vue
plugin in the second step, it doesn't seem to be possible to do it the same way.File:
deps.ts
:File:
vite.config.mts
:How can I export all npm packages to
deps.ts
? What aboutnpm:vue@^3.3.4
andnpm:vue-router@4
?2- Keeping the dependencies in the
vite.config.mts
file, I wanted to addpinia
. Here is what I added todeps.ts
:File:
main.ts
:The syntax seems to be fine according to vscode's inspection, but now I'm getting a weird error:
Is this error related to how Deno resolves dependencies? Can we just import the full direct link without using npm?
The text was updated successfully, but these errors were encountered: