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
When I use the vite-ignore attribute in a <script type="module"> tag like this: <script vite-ignore type="module">
I get the following error:
[vite] Internal server error: Cannot read properties of undefined (reading 'attrs')
It seems that Vite does not support the vite-ignore attribute and fails to parse it. Is there any way to ignore certain <script type="module"> tags during the development process?
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 vuejs/core instead.
Describe the bug
When I use the vite-ignore attribute in a <script type="module"> tag like this:
<script vite-ignore type="module">
I get the following error:
It seems that Vite does not support the vite-ignore attribute and fails to parse it. Is there any way to ignore certain <script type="module"> tags during the development process?
Reproduction
https://stackblitz.com/edit/vitejs-vite-rbkwyxun?file=src%2Fmy-element.js
Steps to reproduce
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: