-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2.6.0 #5352
Conversation
Codecov Report
@@ Coverage Diff @@
## 2.x #5352 +/- ##
=========================================
+ Coverage 95.7% 96.12% +0.42%
=========================================
Files 74 74
Lines 2513 2555 +42
Branches 639 650 +11
=========================================
+ Hits 2405 2456 +51
+ Misses 91 83 -8
+ Partials 17 16 -1
Continue to review full report at Codecov.
|
Co-Authored-By: danielroe <daniel@concision.co.uk>
Co-Authored-By: danielroe <daniel@concision.co.uk>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core-js
& node-fetch
should not be present in examples/vue-apollo/package.json
, they are shipped by packages/vue-app
.
Didn't find how to suggest multiple line edits (I think that Github doesn't have this feature yet)
Have ever tried with firebase? Errors happened newly like |
@sgmheyhey Did you tried adding |
No needed with Nuxt.js v2.5.2-25897721.3b85dd97. And v2.6, I've tried to add xmlhttprequest. But not worked. |
@sgmheyhey Please create an issue with a small repository or at least link to the method that you are deploying to the firebase. Sharing custom server.js, nuxt.config and package.json can also help. |
Failed to open new issue. :( #5441 |
This reverts commit eb5cb40.
Beta Testing
If you are interested in early testing this release, you can temporarily switch to the
nuxt-edge
distribution. Please make this change in package.json:Migration Guide
This version is addressing most of the problems of 2.5 and is without any breaking changes. For most of the users, a normal version upgrade would be enough. However, reading this guide can help to have a smooth upgrade.
General Tips
yarn.lock
,package-lock.json
andnode_modules
yarn outdated
command can be used.Missing App Dependencies
Because of how package managers (yarn, npm) work, a wrong version of a dependency from one of the other dependencies may be hoisted into
node_modules
. Nuxt is strict about this and provides instructions for dependency resolution so please follow it.The well-known problem is with
firebase
package that requires to manually installingnode-fetch
dependency in your project.Core-js
Since
core-js@2
andcore-js@3
are both supported from babel 7.4.0, Starting from 2.6 Nuxt supports both versions (#5411). It is highly advised to stick with 2 (default) unless having a special dependency that needs 3. (Instructions forcore-js@2
are not required but recommended)core-js@2
yarn add -D core-js@2 @babel/runtime-corejs2
npm i -D core-js@2 @babel/runtime-corejs2
core-js@3
yarn add -D core-js@3 @babel/runtime-corejs3
npm i -D core-js@3 @babel/runtime-corejs3
Edit
nuxt.config.js
:Typescript
Nuxt 2.5 users may only require to add
ts-node
to thedependencies
nuxt-ts
dependency (2.4 users only)yarn remove nuxt-ts
npm remove nuxt-ts
nuxt
andts-node
todependencies
:yarn add nuxt ts-node
npm i nuxt ts-node
@nuxt/typescript
todevDependencies
:yarn add -D @nuxt/typescript
npm i -D @nuxt/typescript
tsconfig.json
file. Nuxt will automatically generate it with defaults at first run, then you can edit it to fit your needsFeatures
_generate
and_build
flags #5434) (Pooya Parsa) (516aea3)--quiet
option tonuxt generate
command (feat(cli): add--quiet
option to nuxt generate command #5357) (Franck Abgrall) (91f4eb0)tsconfig.json
(feat(typescript): detect typescript based on tsconfig.json #5412) (Pooya Parsa) (6ffc5c5)Fixes
babel.config.js
by default (fix(build): disable loadingbabel.config.js
by default #5365) (Xin Du (Clark)) (64fa424)getlocation
(fix(vue-app): decode uri ingetlocation
#5337) (Johan Roxendal) (77dcfe6)unsafe-inline
hasn't been specified (fix(vue-renderer): add the csp hash ifunsafe-inline
hasn't been specified #5387) (Sam Bowler) (97db6a4)Refactors
Examples
Chore
Dependency Upgrades