Closed steuraa closed 7 years ago
I guess your config is not right. Upgrade angular-cli to its newest version (at the moment 1.2.0), create a blank project and see how everything is configured there. I recently did that, added Mangol to its main component, and it works just fine.
I added mangol to an angular2/typescript project with webpack but not with angular_cli. I added import 'openlayers/dist/ol.js'; import 'proj4/dist/proj4.js'; import 'jspdf/dist/jspdf.min.js'; to vendor.ts which is specified as an entry point in the webpack.config.json.
After building I'm getting the following errors:
@ ./~/mangol/src/lib/services/_index.ts 1:0-30 @ ./~/mangol/src/lib/_index.ts @ ./~/mangol/index.ts @ ./ClientApp/app/app.module.ts @ ./ClientApp/main.ts @ multi (webpack)-dev-server/client?http://localhost:3000 ./ClientApp/main.ts
If you need any other info, shoot!