qlik-oss / sn-map

Map supernova for nebula.js
MIT License
1 stars 3 forks source link

Module not found: Error: Can't resolve 'axios' #52

Open alexcolo opened 1 year ago

alexcolo commented 1 year ago

Describe the bug Using sn-map in Angular v13 app I got a compile error

To Reproduce Install and reference sn-map in your Angular project, then compile with ng serve.

Expected behavior This is the errore returned by the compiler: ./node_modules/@nebula.js/sn-map/dist/sn-map.js:23765:14-30 - Error: Module not found: Error: Can't resolve 'axios' in 'C:\01_Work\60_WebDev\Fandom\fandna-mashup\node_modules\@nebula.js\sn-map\dist'

Additional context "@nebula.js/stardust": "^3.1.3" "@nebula.js/sn-map": "^0.9.0"

TS code import map from '@nebula.js/sn-map'; ... { name: 'map', load: () => Promise.resolve(map) },

aimdexter commented 8 months ago

yarn add axios will fix it for you :)