-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught Error: Cannot find module "tslib" - Running self tests #929
Comments
Tried a clean build in VirtualBox/Ubuntu and works. Get
|
Did you verify that tslib was present? It's a top-level dependency of intern, so it should be available in |
Error is:
index:26 is:
There are no network errors (404s and the like), only this console error. |
I've been able to reproduce this. Setting NODE_PATH doesn't affect it one way or the other. The issue seems to be that the test server can't find modules on Windows. |
Resolves theintern#929, Resolves theintern#934
Hi. I've
and am still seeing the same error at http://localhost:9000/__intern/. |
I tried this on a Windows 10 system with a couple different versions of node and npm, and the tests are loading and running properly:
Did you verify that tslib is present in your node_modules? |
Running the |
To run the self tests on Window, I had to install
cross-env
and use the following test script:"test": "cross-env NODE_PATH=_build node _tests/src/bin/intern.js"
Expected behavior
Self tests run.
Current behavior
This page:
http://localhost:9000/__intern/browser/remote.html?basePath=%2F&runInSync&serverUrl=http%3A%2F%2Flocalhost%3A9000%2F&sessionId=8c18cc42a59ebb4441c4586c8d0b2e1a&socketPort=9001
is blank, and outputs this error in the console:
Possible solution
Steps to reproduce (for bugs)
Environment
Intern version: 4.2.0
Node version: 10.3.0
NPM version: 6.1.0
Browser version: 67.0.3396.87 (Official Build) (64-bit)
Additional information
The text was updated successfully, but these errors were encountered: