openlayers引入vue项目时候报错Module parse failed: Unexpected token
在构建工具中配置 transpileDependencies 参数,因为 ol 依赖库基于一个目标环境不支持的 ES 版本撰写,将该依赖添加进 vue.config.js 中的 transpileDependencies 选项中。启动成功](https://img-blog.csdnimg.cn/direct/000e689948ca45deb6981083069ff273.png)JavaScr
·
JavaScript模块解析失败
在构建工具中配置 transpileDependencies 参数,因为 ol 依赖库基于一个目标环境不支持的 ES 版本撰写,将该依赖添加进 vue.config.js 中的 transpileDependencies 选项中

更多推荐




所有评论(0)