MelihAltintas / vue3-openlayers

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

Module not found error #350

Closed oguzhankidik closed 1 month ago

oguzhankidik commented 1 month ago

i have vue 3 project. uses webpack and laravel mix. I cant use this library on my project.

package.json

"ol": "^9.1.0",
"ol-contextmenu": "^5.4.0",
"ol-ext": "^4.0.18",
"vue3-openlayers": "^9.0.0",

app.js

import 'vue3-openlayers/styles.css';
import OpenLayersMap from 'vue3-openlayers';
app.use(OpenLayersMap /*, options */);

i installed library with no problem. but i got 90 errors when i run the project. errors are like these image

d-koppenhagen commented 1 month ago

Hey @oguzhankidik would you like to share your solution/ what was wrong?

oguzhankidik commented 1 month ago

Hey @oguzhankidik would you like to share your solution/ what was wrong?

i added these lines to webpack.config.js.

module: {
        rules: [
            {
                test: /\.m?js$/,
                resolve: {
                    fullySpecified: false,
                },
            },
        ],
    },