AnsweredAssumed Answered

multipleDefine error in dojoLoader

Question asked by jowennberg on Nov 22, 2018

Hi

 

Im keep getting multipleDefine error in dojoLoader when trying to initialize a map.

 

I have no other scripts running.

 

Im using typescript and this is the simple typescript code:

 

import esriMap = require("esri/map");

const map = new esriMap("map", {
basemap: "topo",
center: [-122.45, 37.75],
zoom: 14
});

 

And this is the javascript code being compiled:

 

define(["require", "exports", "esri/map"], function (require, exports, esriMap) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var map = new esriMap("map", {
basemap: "topo",
center: [-122.45, 37.75],
zoom: 14
});
});

 

This is driving me crazy and im hoping that someone have a solution.

/J

Outcomes