No description
Find a file
JJ Kasper 039735350c
Add proper error when failing to load next.config.js (#28099)
This adds a proper error when we fail to load a user's `next.config.js` as the default node error can be confusing on its own and makes it seem like something failed internally in Next.js. We can expand on the included error doc added and potentially also add better syntax errors by parsing with acorn when we fail to load this file in the future. 

<details>

<summary>screenshot</summary>

<img width="962" alt="Screen Shot 2021-08-13 at 21 46 09" src="https://user-images.githubusercontent.com/22380829/129432211-6d858062-eea0-4bb9-8725-5bde98bdc47b.png">

</details>
2021-08-14 13:52:18 +00:00
.github Fix gh action workflow when docs changed (#28092) 2021-08-14 01:44:51 +00:00
.vscode Remove bugfix needed for webpack 4 when webpack 5 is used (#23886) 2021-04-11 15:06:35 +00:00
bench Replace 'require' with 'import' in bench files and update dependancies (#25775) 2021-06-04 14:30:52 +00:00
docs Add a Styling Section to next/image component docs (#28055) 2021-08-14 03:56:33 +00:00
errors Add proper error when failing to load next.config.js (#28099) 2021-08-14 13:52:18 +00:00
examples Examples: Jotai (#27940) 2021-08-14 04:06:49 +00:00
packages Add proper error when failing to load next.config.js (#28099) 2021-08-14 13:52:18 +00:00
scripts USe await correctly (#28053) 2021-08-12 21:06:31 -07:00
test Add proper error when failing to load next.config.js (#28099) 2021-08-14 13:52:18 +00:00
.alexignore Enable Alex documentation linting for docs (#26598) 2021-06-25 11:40:50 -05:00
.alexrc Enable Alex documentation linting for docs (#26598) 2021-06-25 11:40:50 -05:00
.eslintignore Add/amp attribute patcher (#27700) 2021-08-03 09:54:57 -07:00
.eslintrc.json [ESLint] Remove error when file patterns are unmatched + ESLint setup changes (#27119) 2021-07-16 20:19:08 +02:00
.gitignore Add initial next swc package with first transform (#27355) 2021-07-27 17:07:28 +02:00
.npmrc Remove version prefix 2018-10-02 01:35:56 +02:00
.prettierignore chore: Set Prettier to ignore test output (#26353) 2021-07-20 14:37:44 -05:00
.prettierignore_staged feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
.prettierrc.json Prettier trailingComma default value to es5 since 2.0 (#14391) 2020-06-22 13:25:24 +02:00
azure-pipelines.yml Only output test logs on failure in CI (#27604) 2021-07-29 15:35:13 +00:00
CODE_OF_CONDUCT.md Update Code of Conduct email address (#12108) 2020-04-22 16:27:24 +02:00
contributing.md feat(package.json): add contributor-friendly lifecycle scripts (#27825) 2021-08-09 16:21:16 +00:00
data.sqlite Fix export worker threads options (#25063) 2021-05-14 12:50:29 +02:00
jest.config.js Upgrade jest-worker (#23077) 2021-03-16 21:08:35 +00:00
lerna.json v11.1.1-canary.7 2021-08-13 21:23:09 -05:00
license.md Update license year for all packages 2021-01-11 11:12:19 +01:00
lint-staged.config.js Replace CLIEngine with ESLint (#25801) 2021-06-09 13:54:10 +02:00
package.json feat(package.json): add contributor-friendly lifecycle scripts (#27825) 2021-08-09 16:21:16 +00:00
readme.md Monorepo (#5341) 2018-10-01 01:02:10 +02:00
release.js Match last PR mention in commit message for release notes 2021-05-07 19:53:38 +02:00
run-tests.js Use @vercel/fetch for run-tests requests (#27815) 2021-08-06 10:20:05 -05:00
SECURITY.md Create SECURITY.md 2020-07-13 19:25:08 +02:00
skip-docs-change.js Update repo scripts to separate folder (#26787) 2021-07-01 13:41:27 +02:00
test-file.txt Add additional file serving tests (#12479) 2020-05-04 11:58:19 -05:00
UPGRADING.md Move upgrading guide to /docs (#10727) 2020-02-28 23:46:18 +01:00
vercel.json Silence GH Comments for Preview URLs (#18766) 2020-11-03 21:59:47 +00:00
yarn.lock Update util to 0.12.4 (#27939) 2021-08-14 00:04:07 +00:00

Next.js

Getting Started

Visit https://nextjs.org/learn to get started with Next.js.

Documentation

Visit https://nextjs.org/docs to view the full documentation.

Who is using Next.js?

Next.js is used by the world's leading companies. Check out the Next.js Showcase to learn more.

Community

The Next.js community can be found on GitHub Discussions, where you can ask questions, voice ideas, and share your projects.

To chat with other community members you can join the Next.js Discord.

Our Code of Conduct applies to all Next.js community channels.

Contributing

Please see our contributing.md.

Good First Issues

We have a list of good first issues that contain bugs which have a relatively limited scope. This is a great place to get started, gain experience, and get familiar with our contribution process.

Authors