tomwayson / esri-angular-cli-example

Example of how to to use the ArcGIS API for JavaScript in an Angular CLI app

Home Page:https://tomwayson.github.io/esri-angular-cli-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why does this have to use relative paths to the TypeScript source to import esri-loader?

tomwayson opened this issue · comments

See these lines.

If I try to use the import { isLoaded, bootstrap, dojoRequire } from 'esri-loader'; form, I get index.js:3Uncaught Error: Cannot find module "." errors in the console at runtime, looks like in the UMD block of node_modules/esri-loader/dist/index.js:
image

I think I've configured that libary properly to be consumed by other TypeScript applications such as this, but... maybe not?

Non-relative paths work in ES015. That almost makes me think the issue is on the consuming end in this application?

Resolved in 8e5999a