Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Modified the ES Modules Example to Use Typescript, Keep Getting a Sign In Page on Map

See original GitHub issue

I am reporting an issue with

  • TypeScript definitions
  • another resource in this repository

I had to add TS on top of the ES Module example for react since there don’t seem to be anything for that combination. It appears all the TS examples use ADM.

Attached is a screenshot of the sign in that pops up when I try and use basemap: "arcgis-topographic",. If I use what is provided in the example, everything is fine. Any login I have does not work when attempting to sign in.

Do I need to provide an API Key when using ES Modules?

Screenshot from 2021-01-28 18-19-19

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

andygupcommented, Feb 8, 2021

Gotcha, no worries. I answered your question over in GeoNET. I’ll go ahead close this issue.

andygupcommented, Jan 29, 2021

@allidoisace The other errors you are seeing might be related to the missing API key. I recommend setting up the key first and trying again. Then let us know if you still see the errors or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript: Documentation - Modules
In TypeScript, just as in ECMAScript 2015, any file containing a top-level import or export is considered a module. Conversely, a file without...
Read more >
Using ES modules in browsers with import-maps
In this post, we'll go through a few basic examples of how ES modules are used and then explore the possibility of using...
Read more >
Everything You Need to Know About JavaScript Import Maps
Import maps are a new way for web pages to control the behavior of JavaScript imports, potentially enabling you to ditch your build...
Read more >
How to Dynamically Import JavaScript with Import Maps
Step 1 — Creating an HTML Page and Inserting JavaScript · Step 2 — Writing a Hello World Script Using ES6 Modules ·...
Read more >
ES modules: A cartoon deep-dive - Mozilla Hacks - the Web ...
ES modules bring an official, standardized module system to JavaScript. It took a while to get here, though — nearly 10 years of ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found