Closed stefanroeck closed 1 year ago
Hi @stefanroeck,
I usually don't use bundlers (at least for basic projects..), if you import from the dist folder do you get the same issue?
I think it should be something like the following:
import '../node_modules/leaflet-ui/dist/leaflet-ui-src.js';
👋 Raruto
Hi, yes I got it working when using
import 'leaflet-ui/dist/leaflet-ui-src';
I also had to add a dependency to url
package, as there seems to be a
require('url');
in the leaflet-ui code. Thanks for your assistance ;-)
My
package.json
:My code
index.js
:My
webpack.config.js
:The error when running
webpack serve
:Is this supported or do I have to link the JS/CSS from a CDN?