-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationpending triage
Description
Describe the bug
I can display pictures in the development environment, but import.meta.url after packaging is undefined, and cause the New URL to report.
I have already viewed other questions, most of them are previous versions, if it is a duplicate problem or my usage error, then I am very sorry!
Reproduction
https://github.com/RennCheung/import-meta-url-demo
System Info
System:
OS: macOS 11.6
CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
Memory: 2.56 GB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.16.0 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.11 - /usr/local/bin/npm
npmPackages:
@vitejs/plugin-vue: ^1.9.4 => 1.9.4
@vitejs/plugin-vue-jsx: ^1.2.0 => 1.2.0
vite: ^2.6.13 => 2.6.13Used Package Manager
pnpm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- 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/vue-next instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationpending triage