question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[now-next] now dev does not work with the new src directory

See original GitHub issue

Running now dev while having everything the src directory does not work. next build still works.

Next.js v9.1.0. No now.json.

Screenshot from 2019-10-07 20-37-27

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:5

github_iconTop GitHub Comments

2reactions
einaralexcommented, Oct 20, 2019

Nice! If you’re using a now.json you have to add @now/next@canary as src.

{
  "version": 2,
  "builds": [
    {
      "src": "package.json",
      "use": "@now/next@canary"
    }
  ]
}

0reactions
einaralexcommented, Oct 20, 2019

Yeah, with now dev when I remove my now.json, it logs the builder name when initializing. Without a now.json, it outputs @now/next@canary and works. If it’s built with @now/next it doesn’t work, just get an index page with a package.json.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Detect extension in a directory using node js
We still have a problem. We don't have the file full name. We actually have to auto-detect the extension by knowing the project...
Read more >
AWS Amplify Next.JS & Typescript | Get Started - Jarrod Watts
We are using src as the source directory path. The src folder is optional in Next JS, but I like to create it....
Read more >
Master code splitting with dynamic imports in Next.js - Daily.dev
We have seen that the pages folder is where the Next.js routing is set. Now, by default ... Now, Next.js splits the routes...
Read more >
Nextjs, Images in public folder not found on deploy, but are ...
Yes, same level as src and pages. When you run next in dev (npm dev) do you get the image under localhost:9000/images/my-image.jpg? Did...
Read more >
CLI tools OpenShift Container Platform 4.6
Click Download Now next to the OpenShift v4.6 Linux Client entry and save the file. ... When you run oc inside a pod...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found