-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Import incorrectly identified as remote module, fails to run #1170
Comments
OK so I found the documentation that says you can't use Node.js modules directly. This is very poorly documented in the initial guides and tutorials. I would suggest putting a big warning in the Getting Started page to avoid confusion as there is currently no mention of this anywhere until much later in the docs. |
We need to actually improve the UX of the error messages we display to users when they
The user doesn't know that k6 first tried to load the file locally, and because it didn't find it, tried to treat it as an URL. We do that to be backwards compatible with the functionality of being able to execute
|
Closing this, since the just-merged #1007 added the improved message in the screenshot above |
My script uses a locally installed module of the name
@acceleratxr/utilities
as is imported like soWhen running my test I get the following warning and error.
It appears that k6 is incorrectly identifying this module as a remote URL when in fact it is a locally installed module. This shouldn't happen.
The text was updated successfully, but these errors were encountered: