You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, create a project using Vue CLI, and then import package serialize-javascript will run normally.
Normal vue2 demonstration project(F12 see console.log normal output):
Key code snippets:snippets
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
GreenMashimaro
changed the title
vite import serialize-javascript report Cannot read properties of undefined (reading 'from')
import serialize-javascript report Cannot read properties of undefined (reading 'from')
May 18, 2022
So this is not vite's problem.
Because the dependency of buffer package is missing.
But I'm surprised that Vue CLI project works normally, while the project created by vite doesn't work properly.
Describe the bug
Create a new project through vite scaffolding and then import package
serialize-javascript
.An error will be reported.
Reproduction
Key code snippets:link
reproduce:online link
However, create a project using Vue CLI, and then import package
serialize-javascript
will run normally.Normal vue2 demonstration project(F12 see console.log normal output):
Key code snippets:snippets
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: