This issue is indeed back as shown in this Github issue
https://github.com/nuxt/nuxt.js/issues/9224#issuecomment-893263501
This happens if your Nuxt version is between 2.15.5
and 2.15.7
(I think).
A temporary solution could be adding this to your nuxt.config.js
file, as suggested here
build: {
babel: {
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-private-methods',
// or with JUST the line below
['@babel/plugin-proposal-private-property-in-object', { loose: true }]
],
},
}
A definitive fix will probably be shipped shortly, feel free to subscribe to the Github issue to be notified of the latest updates.
EDIT: This will be fixed once this PR is merged and there's a new release: https://github.com/nuxt/nuxt.js/pull/9631
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…