Skip to content
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: The partial main could not be found #300

Closed
lijuhong1981 opened this issue Jul 23, 2024 · 7 comments
Closed

Error: The partial main could not be found #300

lijuhong1981 opened this issue Jul 23, 2024 · 7 comments

Comments

@lijuhong1981
Copy link

I use the "jsdoc2md src/index.js" command, report error:
“Error: The partial main could not be found”
The jsdoc-to-markdown version is 8.0.2.

@lijuhong1981
Copy link
Author

The version 8.0.1 can be used.
But if update to 8.0.2 version, use it report error: “Error: The partial main could not be found”.

@75lb
Copy link
Member

75lb commented Jul 23, 2024

I can't reproduce this.. Could you uninstall then reinstall jsdoc2md and try again.. if it still fails, please post a reproduction case here which I can run to see it fail.. I will need to see the full command you use plus a JS file which fails. Also, tell me which node version you are using.

@lijuhong1981
Copy link
Author

lijuhong1981 commented Jul 24, 2024

Reinstall and try again still fails.
The node version is 20.10.0.
I created a whole new project still fails.
jsdoc2md.zip

@KhromovNikita
Copy link

KhromovNikita commented Jul 24, 2024

I also get a similar error: Error: The partial main could not be found
v8.0.2
Node: v18.17.1

@75lb
Copy link
Member

75lb commented Jul 24, 2024

Reinstall and try again still fails. The node version is 20.10.0. I created a whole new project still fails. jsdoc2md.zip

I'm on macOS.. from this project I tried npm run build-docs in node 12, 15, 16, 18 and 22 and everything worked correctly.. which OS are you on?

@lijuhong1981
Copy link
Author

windows 10

75lb added a commit to jsdoc2md/jsdoc-api that referenced this issue Jul 24, 2024
75lb added a commit that referenced this issue Jul 24, 2024
@75lb
Copy link
Member

75lb commented Jul 24, 2024

Fixed in v8.0.3 - please reinstall and try again.

Fast-glob on windows was the issue. I replaced node-glob with fast-glob recently as node-glob does not support old Node.js versions (jsdoc2md requires support back to v12).. I have rolled back to node-glob for now, while I look more closely at the fast-glob windows issue. Many thanks for the quick bug report!

/cc jsdoc2md/jsdoc-api#28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants