Categories
Development

Nextjs pages/_app.js: Missing class properties transform

I have a nextjs application. My node version is v12.7.0. It has some issues with class base components giving this error: (it relates to babel plugins-configs) [ error ] ./pages/_app.js SyntaxError: /…/pages/_app.js: Missing class properties transform. The followings are important parts of the application: package.json { “name”: “sth”, “version”: “1.2.0”, “license”: “ISC”, “author”: “Afsane Fadaei”, […]

Categories
Development

“An accessor cannot be declared in an ambient context.” in a custom library

I have a webpack, typescript project (A) which emits a small library. The library is used in an angular 8 project (B). In project A I declare a class like: export class Foo { private foo: string; constructor(foo: string) { this.foo = foo; } } export class Bar extends Foo { private bla: string; constructor(foo: […]