Skip to content

Commit

Permalink
build(npm): add --turbo flag to dev
Browse files Browse the repository at this point in the history
workaround to issue introduced in next.js 14.1.0 (vercel/next.js#60890)
that only seems to affect dev builds for me
  • Loading branch information
mikesprague committed Jan 19, 2024
1 parent b13305a commit 7f33561
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"npm": ">= 10.x"
},
"scripts": {
"dev": "next dev",
"dev": "next dev --turbo",
"build": "next build",
"changelog": "conventional-changelog -i CHANGELOG.md -s && git add CHANGELOG.md",
"start": "next start",
Expand Down Expand Up @@ -76,11 +76,7 @@
"typescript": "5.3.3"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"production": [">0.2%", "not dead", "not op_mini all"],
"development": [
"last 1 chrome version",
"last 1 firefox version",
Expand Down

1 comment on commit 7f33561

@RajSharma877
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mikesprague for this solution, I also ran into same problem import useRef error when I added this turbo flag it worked

Please sign in to comment.