apollo-client-devtools icon indicating copy to clipboard operation
apollo-client-devtools copied to clipboard

Breaks Support for Import Maps

Open guybedford opened this issue 4 years ago • 1 comments

Intended outcome: It should be possible to use apollo client devtools on websites that use import maps.

Actual outcome: Because Apollo Client Devtools injects ES modules into the page, this causes all subsequent import maps in the page to not be processed, giving the import map error - An import map is added after module script load was triggered.

I've posted more information about this in https://github.com/WICG/import-maps/issues/248.

How to reproduce the issue: For example, try navigating to https://generator.jspm.io/ with the extension enabled in latest chrome with import maps support (89+). The error above comes up and the page will not load further unless the extension is disabled.

Desktop (please complete the following information):

  • Browser: Chrome
  • Browser version: 89
  • Extension version: 3.02

guybedford avatar Mar 18 '21 12:03 guybedford

Interesting - thanks @guybedford. We'll take a look!

hwillson avatar Mar 28 '21 19:03 hwillson