Skip to content
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

This experimental syntax requires enabling one of the following parser plugin(s): "importAttributes", "importAssertions". #7

Closed
changweihua opened this issue Apr 23, 2024 · 2 comments · Fixed by #8

Comments

@changweihua
Copy link

当我的 Ts 代码中有如下引用

import packageJson from '../package.json' assert { type: 'json' }

错误提示如下:

[vite] Internal server error: This experimental syntax requires enabling one of the following parser plugin(s): "importAttributes", "importAssertions". (4:42)
Plugin: enhance-log

@baozouai baozouai pinned this issue Apr 23, 2024
@baozouai baozouai unpinned this issue Apr 23, 2024
@baozouai baozouai linked a pull request Apr 23, 2024 that will close this issue
@baozouai
Copy link
Owner

@changweihua 请用0.6.2

@changweihua
Copy link
Author

可以了,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants