porsager / wright

🚀 Work Fast Work Wright
Do What The F*ck You Want To Public License
180 stars 15 forks source link

Docs describe a default `main` option, but Wright throws if `main` isn't supplied #29

Closed barneycarroll closed 6 years ago

barneycarroll commented 6 years ago

According to the JS API readme:

  // Main should specify the entry point of your app.
  //   .html   (eg. index.html)
  //   url     (eg. http://localhost:5000)
  //   defaults to using a boilerplate html file.

...but if I try to run Wright without supplying a main, I get this:

\node_modules\wright\lib\config.js:47
  if (config.main.startsWith('http://'))
                  ^

TypeError: Cannot read property 'startsWith' of null
porsager commented 6 years ago

Oh shoot. You're right... That's a regression. I'll get that fixed! Thanks 😊