Troubleshooting
Error during template compile of 'opConfigProvider'
Error: ../../../lib/ngop-dev/core/src/op-core.service.ts(30,21): Error during template compile of 'opConfigProvider'
Function expressions are not supported in decorators
Consider changing the function expression into an exported function.
../../../lib/ngop-dev/core/src/op-core.service.ts(30,21): Error during template compile of 'opConfigProvider'
Function expressions are not supported in decorators
Consider changing the function expression into an exported function.
Solution:
NgOP requires Ivy so set this configuration in your tsconfig file:
"angularCompilerOptions": {
"enableIvy": true
}
LOG: Detected non NgOP module
Solution: If it happens to your local module, probably your OpModule's package defined in library's "package.json" file is not the same as the one you defined in "tsconfig.json".
"op-module-close" does not work from my lazy loaded modal.
Make sure your lazy loaded module imports OpModalModule as it contains this directive.
NullInjectorError: No provider for InjectionToken op-core-s
When you encounter error like this:
core.mjs:6494 ERROR NullInjectorError: R3InjectorError(...Module)[InjectionToken op-core-s -> InjectionToken op-core-s -> InjectionToken op-core-s -> InjectionToken op-core-s]:
NullInjectorError: No provider for InjectionToken op-core-s!
Probably your forgot to create main config provider or your component cannot access it. make sure you will use opConfigProvider() in your app's main module.
Cannot find module '../.ngop/variables' or its corresponding type declarations.
It happens when you either not yet started dev app's server or when you changed the dev app's port in between restarts.
How to solve:
- (Re)start dev app server.