We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to import uuid in our nodejs code base, I get a Trace: Error: Cannot find module '/home/gradle/tests/uuid/v4' error.
uuid
Trace: Error: Cannot find module '/home/gradle/tests/uuid/v4'
After discussing with my team, we believe the issue has to with https://github.com/getgauge/gauge-js/blob/master/src/req-manager.js#L34. It seems that an error will be thrown for anything where modname !== path.basename(modname), like uuid/v4 in our case.
modname !== path.basename(modname)
uuid/v4
We are using the workaround const uuidv4 = require('../node_modules/uuid/v4'); for the time being.
const uuidv4 = require('../node_modules/uuid/v4');
The text was updated successfully, but these errors were encountered:
Fix require node module, #246
ab7a1e2
@emlaver Thanks for reporting the issue. We could replicate this at our end, and will try to fix it soon.
Sorry, something went wrong.
6231f1b
The fix should be available in nightly >= 25-9-2019
This issue has been verified and found fixed. Tested version: js (2.3.6.nightly-2019-10-01)
js (2.3.6.nightly-2019-10-01)
js
shubhamsc
No branches or pull requests
When trying to import
uuid
in our nodejs code base, I get aTrace: Error: Cannot find module '/home/gradle/tests/uuid/v4'
error.After discussing with my team, we believe the issue has to with https://github.com/getgauge/gauge-js/blob/master/src/req-manager.js#L34.
It seems that an error will be thrown for anything where
modname !== path.basename(modname)
, likeuuid/v4
in our case.We are using the workaround
const uuidv4 = require('../node_modules/uuid/v4');
for the time being.The text was updated successfully, but these errors were encountered: