Open deyihu opened 3 years ago
hi, i'm trying to translate to spanish this tool, but im getting this error, i'm aware about the usage that makes this error, but i need to integrate the lib into a project while coding my fork of maptalks, i use npm link to point to the package while is runing on build mode so it would listen to the changes every time it gets builded.
npm link path/to/forked/maptalks/ is creating this path in package.json using the js file
Is this correct? or i am missing something else?
You don't need to package maptalks. Wait until maptalks is modified before packaging. Generally, packaging tools will provide externals functionality
https://rollupjs.org/configuration-options/#output-globals
<script src='your maptalks files '></script>
@Vairgrys
hi, I work in an index.html format. Is there a way to fix this issue with it? I am quite new to this so I use the exemples from the maptalks website, and they are in html so i've gone for that. here are the imports I have :
If you report this error
you need
instead of
Otherwise, the webpack will be packaged maptalks.es.js and maptalks.js/maptalks . min.js