-
Notifications
You must be signed in to change notification settings - Fork 483
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
Error: Cannot find module 'documentation' #1482
Comments
I have a workaround at lease... Lacks elegance but works for my purposes. |
The default instructions - |
Thanks. I eventually found the module in /lib and tried requiring it from there, but came up with an error so abandoned that approach. I just re-installed documentation as suggested and I am getting the same error. The code module.exports = async function (req, res) { req.query.field has the path/file name (./suds/db.js) and sendView sends the results to the screen. TypeError: Cannot read property 'parseExtension' of undefined |
This doesn't work on version 14.0.3 or later. $ cat require.js
|
Yes, looks like the changelog mentions updating to node v14 but not the move to native esm. You'll need to use |
I am trying to use the API. I installed documention.js (13.2.5) using npm (6.14.16) and it is working fine from the command line. However this does not generate a module in node_modules and when I run a program with
var documentation = require('documentation');
I get
Error: Cannot find module 'documentation'
How do I install the module. I can't find instructions in the documentation..
The text was updated successfully, but these errors were encountered: