Internal server error: Failed to parse source for import analysis because the content contains invalid JS syntax. You may need to install appropriate plugins to handle the .hdr file format, or if it's an asset, add "**/*.hdr" to `assetsInclude` in your configuration
怎么办呢?
解决:
只需要添加代码: assetsInclude:['**/*.hdr']
在vite.config.js文件下
export default defineConfig({
plugins: [vue()],
assetsInclude:['**/*.hdr']
})
大功告成!!!