codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

Unable to import jsdom

Open vamche opened this issue 3 years ago • 1 comments

🐛 bug report

Preflight Checklist

  • [x] I have read the Contributing Guidelines for this project.
  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Description of the problem

Unable to import jsdom in the sandbox with the vanilla template (parcel-bundler) Screenshot 2022-07-01 at 12 39 12 AM

How has this issue affected you? What are you trying to accomplish?

We are trying to do UI testing for vanilla HTML and javascript. This error is blocking us to go forward.

To Reproduce

Include import { JSDOM } from "jsdom" in any of the files in the sandbox with the vanilla template (parcel-bundler) https://codesandbox.io/s/jolly-christian-zlxbpw?file=/calculator.spec.js

Link to sandbox: link

Your Environment

Software Name/Version
Сodesandbox
Browser Brave
Operating System

vamche avatar Jun 30 '22 19:06 vamche

Similar Sandbox failures:

  • https://codesandbox.io/s/the-elevator-challenge-rtxfv?file=/src/scripts/App.test.js

vamche avatar Jul 01 '22 04:07 vamche

This appears to be working now

JamesACS avatar Oct 28 '22 12:10 JamesACS