typescript-book icon indicating copy to clipboard operation
typescript-book copied to clipboard

Error: ENOENT: no such file or directory, stat '/Users/username/typescript-book/_book/gitbook/gitbook-plugin-adsense/plugin.js'

Open micahstubbs opened this issue 6 years ago • 3 comments

when I follow the guide in https://github.com/basarat/typescript-book/blob/master/CONTRIBUTING.md and run the command gitbook serve . I see this error:

➜  typescript-book git:(master) gitbook serve .
Live reload server started on port: 35729
Press CTRL+C to quit ...

info: 11 plugins are installed
info: loading plugin "edit-link"... OK
info: loading plugin "github"... OK
info: loading plugin "adsense"... OK
info: loading plugin "header"... OK
info: loading plugin "livereload"... OK
info: loading plugin "highlight"... OK
info: loading plugin "search"... OK
info: loading plugin "lunr"... OK
info: loading plugin "sharing"... OK
info: loading plugin "fontsettings"... OK
info: loading plugin "theme-default"... OK
info: found 125 pages
info: found 139 asset files

Error: ENOENT: no such file or directory, stat '/Users/username/typescript-book/_book/gitbook/gitbook-plugin-adsense/plugin.js'

micahstubbs avatar May 28 '19 19:05 micahstubbs

Ah, so running the gitbook serve . command a second time seems to work.

it appears that after the first failure, somethign creates the missing adsense plugin.js file. odd. 🤔

I would still like to see this bug fixed, so that the gitbook serve . command works on the first try on a clean local dev install.

micahstubbs avatar May 28 '19 19:05 micahstubbs

Having this issue as well. Would be great if it was fixed up.

soaapp avatar Aug 20 '19 19:08 soaapp

Since gitbook version we are on is no longer relevant. Better if we just update contributing.md to specify that you should just:

  • Edit the existing file
  • If its a new file also update Summary.md

:rose:

basarat avatar Aug 25 '19 01:08 basarat