esdoc2 / esdoc2-plugins

MIT License
6 stars 5 forks source link

esdoc2-publish-html-plugin error #10

Closed pixelass closed 6 years ago

pixelass commented 6 years ago

I just updated my project to use esdoc2 instead of esdoc.

Sadly I get this error:

Unhandled Rejection at: Promise Promise {
  <rejected> { Error: Cannot find module 'esdoc2-publish-html-plugin/out/src/Builder/DocBuilder'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/greada/Documents/workspace/s2/dekk/node_modules/esdoc2-react-plugin/src/Plugin.js:4:20)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3) code: 'MODULE_NOT_FOUND' } } reason: { Error: Cannot find module 'esdoc2-publish-html-plugin/out/src/Builder/DocBuilder'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/greada/Documents/workspace/s2/dekk/node_modules/esdoc2-react-plugin/src/Plugin.js:4:20)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3) code: 'MODULE_NOT_FOUND' }
grount commented 6 years ago

I have the same error. Tried installing esdoc2-publish-html-plugin in npm but still no success.

pixelass commented 6 years ago

@grount thank you for confirming this issue. I will take a look as soon as I have time.

chrisdel101 commented 6 years ago

I also have this issue.. Esdocs regular would not generate docs so I tried Esdocs2 but cannot run it.

pixelass commented 6 years ago

I looked into the issue:

The publish-html plugin exposes an out folder but it has not been generated for releases.

This might also be related to the original repo defining out inside the gitignore.

I think a local .npmigore should be provided to ensure all files are valid for exposure.

.npmignore

src
!out/src
{
 "files": [
    "out/src",
    "README.md"
  ],
  "main": "out/src/Plugin.js"
}
screen shot 2018-03-12 at 12 35 44

I will test this and prepare a PR as soon as this has been confirmed.

holmrenser commented 6 years ago

This is currently preventing me from switching to esdoc2. Any idea on when/how this will be fixed?

pixelass commented 6 years ago

@holmrenser I haven't found the time to further look into it Sadly I'm not able to contribute before April.

The problem is related to the build chain of esdoc2 which might need some adjustments. It should be trivial. Feel free to take a look (see referenced issues)

MattMcFarland commented 6 years ago

With yarn build chain working properly, we now have some failing unit tests but it seems to be working.

pixelass commented 6 years ago

haven't found the time to test this. But I think it should work now.

pixelass commented 6 years ago

Moving away from Github. Feel free to reopen if interested.

ajmeese7 commented 2 years ago

I would like to see this re-opened!