Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 6, 2025. It is now read-only.
Discussion options

I try to import the module axe-core/react but it shows the following error, can it be due to SSR?
And one last thing, how I import this module only in "development".

import_map.json:

{
  "imports": {
   [...]
    "@axe-core/react": "https://esm.sh/@axe-core/react@4.3.2",
  },
}

index.ts:

import("@axe-core/react")
  .then((axe) => axe.default(React, ReactDOM, 1000))
  .catch((error: Error) =>
    console.log(`Error importing module @axe-core/react: ${error}`)
  );

Browser console: Error importing module @axe-core/react: ReferenceError: Deno is not defined

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.