profile
viewpoint

Ask questionsHow can I make nextjs supported optional chaining?

I used nextjs 9.1 and I add custom .babelrc { "presets": ["next/babel"], "plugins": [ ["@babel/plugin-proposal-optional-chaining"] ] } But I found complie issue: Add @babel/plugin-proposal-nullish-coalescing-operator (https://git.io/vb4Se) to the 'plugins' section of your Babel config to enable transformation.

zeit/next.js

Answer questions iamsteeve

Using the babel plugin is an option, but in theory it should work with Typescript 3.7.2 but it seems that this feature is taken by the babel compiler. Could someone with more experience explain us? :D o are we wrong with something?

useful!

Related questions

Uncaught (in promise) Error: No router instance found. You should only use "next/router" inside the client side of your app.
getInitialProps not working with history (back button)? hot 4
Link component does not persist scroll position - next.js hot 3
WithRouterProps types not available hot 3
Error: Circular structure in "getInitialProps" result of page "/_error" hot 2
Cannot read property 'publicRuntimeConfig' of undefined when updating from Next 7 to Next 9 hot 2
Cannot destructure property `serverRuntimeConfig` of 'undefined' or 'null' hot 2
IE11, development, HMR: Object doesn't support property or method 'attachShadow'. - next.js hot 2
getInitialProps is called multiple times using Express/Fastify hot 2
Module not found: Can't resolve 'fs in node_modules/destroy hot 2
Unknown key passed via urlObject into url.format: as - next.js hot 2
Production Deploy to Firebase doesn't work correctly hot 2
Invisible console.log's in getInitialProps hot 2
HOC not calling getInitialProps hot 2
Next.js `TypeError: Cannot read property 'getFormatter' of undefined` hot 2
source:https://uonfu.com/
Github User Rank List