Skip to content
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

getInternalNameOfClass() called on a non-ES5 #144

Open
egorgrushin opened this issue Aug 5, 2020 · 1 comment
Open

getInternalNameOfClass() called on a non-ES5 #144

egorgrushin opened this issue Aug 5, 2020 · 1 comment

Comments

@egorgrushin
Copy link

angular: 9.0.5
ngx-permissions: 8.0.0
tsconfig.target: es5

It throws next error on build:

WARNING in Invalid constructor parameter decorator in /home/user/workspace/epm-idev/epm-idev-dpv4-gitlab-pull-requests@2/app/node_modules/ngx-permissions/fesm2015/ngx-permissions.js:
() => []

ERROR in getInternalNameOfClass() called on a non-ES5 class: expected NgxPermissionsConfigurationStore to have an inner class declaration

Btw, it is ok with [email protected]

@python-vlad
Copy link

python-vlad commented Oct 29, 2020

Error: Error on worker #1: Error: getInternalNameOfClass() called on a non-ES5 class: expected NgxPermissionsConfigurationStore to have an inner class declaration

I got the same error while building the project.

UPD:
I was helped by building the project under ES2015 and then returning back to ES5. It all worked.
tsconfig.json -> compilerOptions -> "target": "ES5" change to "target": "ES2015". Build your project. After change "target": "ES2015" change to "target": "ES5"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants