rsnext/packages
Todor Totev bad376127e
Detailed error and warnings upon next() call (#13539)
**First, apologies for a second PR on the same issue but I was working on this already so I thought I'd push it and let you decide which you want to merge.**

The PR is related to [13466](https://github.com/vercel/next.js/issues/13466).

Based on my research, the error happens if the options are empty, null, or undefined. That's why I have decided that the most proper check would be using the! post-fix expression operator may assert that its operand is non-null and non-undefined. ``if (options == null)``

(Optional)
I have also added a warning, which warns the user if the passed "dev" variable is not a boolean.

It's my first PR on the "packages" part of the repo so I'd be glad to receive all kinds of critics. If you want me to change or remove anything, I'm open to suggestions.

---

Fixes #13466
2020-06-03 03:19:29 +00:00
..
create-next-app v9.4.5-canary.7 2020-06-02 22:06:20 -04:00
eslint-plugin-next v9.4.5-canary.7 2020-06-02 22:06:20 -04:00
next Detailed error and warnings upon next() call (#13539) 2020-06-03 03:19:29 +00:00
next-bundle-analyzer v9.4.5-canary.7 2020-06-02 22:06:20 -04:00
next-mdx v9.4.5-canary.7 2020-06-02 22:06:20 -04:00
next-plugin-google-analytics v9.4.5-canary.7 2020-06-02 22:06:20 -04:00
next-plugin-material-ui v9.4.5-canary.7 2020-06-02 22:06:20 -04:00
next-plugin-sentry v9.4.5-canary.7 2020-06-02 22:06:20 -04:00
next-plugin-storybook v9.4.5-canary.7 2020-06-02 22:06:20 -04:00
next-polyfill-nomodule v9.4.5-canary.7 2020-06-02 22:06:20 -04:00
react-dev-overlay v9.4.5-canary.7 2020-06-02 22:06:20 -04:00
react-refresh-utils v9.4.5-canary.7 2020-06-02 22:06:20 -04:00