MelihAltintas / vue3-openlayers

Web map Vue 3.x components with the power of OpenLayers
https://vue3openlayers.netlify.app/
MIT License
680 stars 126 forks source link

Can't use vue3-openlayers with yarn #273

Closed laurentleb-comnum closed 10 months ago

laurentleb-comnum commented 10 months ago

Describe the bug I have tried to install dependencies then vue3-openlayers using yarn add. I get a message "error An unexpected error occurred: "expected hoisted manifest for \"vue3-openlayers#vue#@vue/server-renderer#@vue/compiler-ssr\"".

With npm, looks ok. Obviously, when trying to build, I get the same message.

When using tags in my vues, page is loaded but map doesn't display.

Any idea ? I would like to continue using yarn.

Affected version(s)

├── ol-contextmenu@5.3.0 ├── ol-ext@4.0.11 ├── ol@8.1.0 ├── vue@3.3.2 └── vue3-openlayers@3.1.0

Thanks in advance for your help

d-koppenhagen commented 10 months ago

Hey, have you tried to remove your yarn.lock file and run yarn install afterwards?

laurentleb-comnum commented 10 months ago

Hey, yes I did, no change unfortunately

In my yarn_error.log, I get the following trace Trace: Invariant Violation: expected hoisted manifest for "vue3-openlayers#vue#@vue/server-renderer#@vue/compiler-ssr" at invariant (C:\Users\laure\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:2318:15) at _loop2 (C:\Users\laure\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:91029:9) at PackageHoister.init (C:\Users\laure\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:91099:19) at PackageLinker.getFlatHoistedTree (C:\Users\laure\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:48549:20) at PackageLinker. (C:\Users\laure\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:48560:27) at Generator.next () at step (C:\Users\laure\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:310:30) at C:\Users\laure\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:328:14 at new Promise () at new F (C:\Users\laure\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:5305:28)

laurentleb-comnum commented 10 months ago

Hello, I did not succeed in using vue3 opelayers but still want hardly ! I have tried to add explicitely the vue server-rendere and compile-ssr in my package.json, it makes no difference Do you have an idea ? I saw that these package are in your package lock file but not in your package.json, could it come from there ? Thanks in advance

laurentleb-comnum commented 10 months ago

I finally succeeded but not sure why. I changed vue version to 3.3.8 and it finally worked.

I am closing this issue. Congrats for the job !