basarat / typescript-book

:books: The definitive guide to TypeScript and possibly the best TypeScript book :book:. Free and Open Source 🌹
https://basarat.gitbook.io/typescript/
Other
20.88k stars 2.56k forks source link

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

Open micahstubbs opened 5 years ago

micahstubbs commented 5 years ago

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 commented 5 years ago

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.

soaapp commented 5 years ago

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

basarat commented 5 years ago

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

:rose: