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

outDir不合理,导致无法找到cesium.js文件。 #56

Open
songhuige opened this issue Sep 6, 2024 · 5 comments
Open

outDir不合理,导致无法找到cesium.js文件。 #56

songhuige opened this issue Sep 6, 2024 · 5 comments

Comments

@songhuige
Copy link

songhuige commented Sep 6, 2024

####vite配置:

export default defineConfig({
  base: "/analysis",
  plugins: [vue(), vueJsx(), cesium()],
});

错误输出路径

|-- dist
|-- favicon.ico
|-- index.html
|-- jquery.min.js
|-- nginx.conf
|-- analysis
|-- |-- cesium
|-- |--|-- Cesium.js

预期输出路径

|-- dist
|-- favicon.ico
|-- index.html
|-- jquery.min.js
|-- nginx.conf
|-- cesium
|--|-- Cesium.js

@itfsw
Copy link

itfsw commented Sep 7, 2024

遇到了同样问题

@itfsw
Copy link

itfsw commented Sep 7, 2024

找到解决办法了,固定插件版本:1.2.22,新版本引入了cesiumBaseUrl 导致的

@nshen
Copy link
Owner

nshen commented Sep 7, 2024

我看了一下 1.2.23 默认 cesiumBaseUrl 也是和1.2.22一样的呀,为什么会出问题呢?
85e4c55

找到解决办法了,固定插件版本:1.2.22,新版本引入了cesiumBaseUrl 导致的

@hqzqaq
Copy link

hqzqaq commented Sep 12, 2024

找到解决办法了,固定插件版本:1.2.22,新版本引入了cesiumBaseUrl 导致的

我就是在1.2.22版本出现的这个问题,无法解决。

@hqzqaq
Copy link

hqzqaq commented Sep 21, 2024

找到解决办法了,固定插件版本:1.2.22,新版本引入了cesiumBaseUrl 导致的

我就是在1.2.22版本出现的这个问题,无法解决。

我通过修改源码解决了

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

No branches or pull requests

4 participants