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

Issue running botonic serve #911

Closed
chopfitzroy opened this issue Aug 26, 2020 · 5 comments
Closed

Issue running botonic serve #911

chopfitzroy opened this issue Aug 26, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@chopfitzroy
Copy link

Describe the bug

I get the following error when trying to run botonic serve, this is a default install have tried both the tutorial template and blank.

Serving Botonic...

> @ start /home/user/purr-bot
> next start


> Could not find a valid build in the '/home/user/purr-bot/.next' directory! Try building your app with 'next build' before starting the server.

npm
 ERR! code ELIFECYCLE
npm ERR! errno 1

npm
ERR! @ start: `next start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.



npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2020-08-26T08_34_09_409Z-debug.log

child process exited with code 1

To Reproduce
Steps to reproduce the behaviour:

  1. npm install -g @botonic/cli
  2. botonic new purr-bot tutorial
  3. cd purr-bot
  4. botonic serve
  5. See above error

What is the expected behaviour?

App to start up at localhost:8080

Screenshots
If applicable, add screenshots to help explain your problem.

About the environment
Latest version of botonic and running in WSL 20,04.

Additional context
Add any other context about the problem here.

@chopfitzroy chopfitzroy added the bug Something isn't working label Aug 26, 2020
@dpinol
Copy link
Contributor

dpinol commented Aug 26, 2020

Hi,
this looks like a "next.js" issue, are you using it?
I don't have experience with it. Could you try repeating your tests without "next"?

@chopfitzroy
Copy link
Author

botonic appears to use it internally, here is the scripts for the generate package.json:

  "scripts": {
    "dev": "next",
    "build": "rm -rf .next && next build && cp botonic.config.js .next/",
    "start": "next start"
  },

@dpinol
Copy link
Contributor

dpinol commented Aug 26, 2020

Hi,
I cannot find any reference to "next" in botonic. Are you sure you didn't change it locally by mistake?
Otherwise, please provide link to github.com which contains it

@chopfitzroy
Copy link
Author

Hey @dpinol looks like it is using the old npm package: https://www.npmjs.com/package/botonic

The 0.4.1. release used next internally:

import * as next from 'next'
(there are more references as well)

Will nuke all libs tonight and try again.

@chopfitzroy
Copy link
Author

Can confirm was wrong cli version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants