Code Monkey home page Code Monkey logo

Comments (9)

chen21439 avatar chen21439 commented on May 20, 2024

当我点击任意error的输出,当尝试下断点时(不点击断点时可以看到文件,如图1),提升文件不存在

at set (:5175/node_modules/.vite/deps/chunk-2Z5DFVVG.js?v=cd940b55:38)

Could not load content for http://localhost:5175/node_modules/.pnpm/[email protected]/node_modules/ol/src/transform.js (HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE)

image

image

from wind-layer.

sakitam-fdd avatar sakitam-fdd commented on May 20, 2024

@chen21439 直接根目录执行

pmpm i

pnpm run dev
# or
pnpm run build
# or
pnpm run build:minify

关于 workspaces 的概念可以查看这个 https://pnpm.io/zh/workspaces

from wind-layer.

chen21439 avatar chen21439 commented on May 20, 2024

我将自己打包的ol-wind覆盖了直接从npm下载的,就复现了这个问题,请问下你上次上传到npm的ol-wind也是现在master版本么,还有你的node版本号是多少

from wind-layer.

chen21439 avatar chen21439 commented on May 20, 2024

当我将plyaground中package.json中引用的ol-wind(^1.1.4)和wind-core(^1.1.3)改成使用npm下载时,playground项目就正常运行

from wind-layer.

chen21439 avatar chen21439 commented on May 20, 2024

我看到依赖中有旧版本的openlayer4.6.5,不知道是不是这个原因引起的。

from wind-layer.

chen21439 avatar chen21439 commented on May 20, 2024

image
image
npm上ol-wind现在的版本是1.14,github上最新的release是1.12,麻烦你更新一下哈 @sakitam-fdd

from wind-layer.

sakitam-fdd avatar sakitam-fdd commented on May 20, 2024

@chen21439

  1. 添加图层报错的问题我这边本地无法复现,这个比较奇怪
    image
    image
  2. release 更新可能得过段时间,有几个功能没开发完
  3. 这里有一个我这边打包的 ol
    dist.zip

from wind-layer.

sakitam-fdd avatar sakitam-fdd commented on May 20, 2024

@chen21439 可能原因是 github 代码不是最新的,关于 ol 的后面有些修改,我这两周整理一下更新一下

from wind-layer.

sakitam-fdd avatar sakitam-fdd commented on May 20, 2024

更新一下代码再试下:

pnpm 会自动处理依赖关系,不需要手动执行 pnpm add pkg -r

git pull

pnpm i

cd ./packages/core
pnpm run build
cd ../ol
pnpm run build
cd ../../playground/
pnpm start

另外 npm 和 github的release 已更新,此问题先关闭

from wind-layer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.