You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having this error when using the service generator
ERROR in Error: Error encountered resolving symbol values statically. Function calls are not supported
. Consider replacing the function or lambda with a reference to an exported function (position 4:10 in
the original .ts file), resolving symbol RestangularConfigFactory in RestangularConfigFactory.ts, resolvi
ng symbol AppModule in src/app/app.module.ts, resolving symbol AppModule in /src/app/app.module.ts, resolving symbol AppModule in src/app/app.module.ts
at positionalError (\node_modules @angular\compiler\bundles\compiler.umd.js:25266:35)
at simplifyInContext (\node_module
s@angular\compiler\bundles\compiler.umd.js:25109:27)
at StaticReflector.simplify (\node
_modules@angular\compiler\bundles\compiler.umd.js:25123:13)
at StaticReflector.annotations (\n
ode_modules@angular\compiler\bundles\compiler.umd.js:24553:41)
at _getNgModuleMetadata (\node_mod
ules@angular\compiler-cli\src\ngtools_impl.js:138:31)
at _extractLazyRoutesFromStaticModule (\node_modules@angular\compiler-cli\src\ngtools_impl.js:109:26)
at Object.listLazyRoutesOfModule (C:
\node_modules@angular\compiler-cli\src\ngtools_impl.js:53:22)
at Function.NgTools_InternalApi_NG_2.listLazyRoutes (\node_modules@angular\compiler-cli\src\ngtools_api.js:91:39)
at AotPlugin._getLazyRoutesFromNgtools (node_modules@angular\cli\node_modules@ngtools\webpack\src\plugin.js:207:44)
at _donePromise.Promise.resolve.then.then.then.then.then (\node_modules@angular\cli\node_modules@ngtools\webpack\src\plugin.js:443:24)
at process._tickCallback (internal/process/next_tick.js:109:7)
To get it working i have to:
Comment the import line in app.module
Restart the server
And then uncomment the import
Any clue on how to get rid of this?
The text was updated successfully, but these errors were encountered:
I resolved the issue with some changes in app.module
And i removed the return function in RestangularConfigFactory like this
If that's okay for you, i can make a PR for the restangularConfigTemplate and another one for updating the doc
I am having this error when using the service generator
ERROR in Error: Error encountered resolving symbol values statically. Function calls are not supported
. Consider replacing the function or lambda with a reference to an exported function (position 4:10 in
the original .ts file), resolving symbol RestangularConfigFactory in RestangularConfigFactory.ts, resolvi
ng symbol AppModule in src/app/app.module.ts, resolving symbol AppModule in /src/app/app.module.ts, resolving symbol AppModule in src/app/app.module.ts
at positionalError (\node_modules
@angular\compiler\bundles\compiler.umd.js:25266:35)
at simplifyInContext (\node_module
s@angular\compiler\bundles\compiler.umd.js:25109:27)
at StaticReflector.simplify (\node
_modules@angular\compiler\bundles\compiler.umd.js:25123:13)
at StaticReflector.annotations (\n
ode_modules@angular\compiler\bundles\compiler.umd.js:24553:41)
at _getNgModuleMetadata (\node_mod
ules@angular\compiler-cli\src\ngtools_impl.js:138:31)
at _extractLazyRoutesFromStaticModule (\node_modules@angular\compiler-cli\src\ngtools_impl.js:109:26)
at Object.listLazyRoutesOfModule (C:
\node_modules@angular\compiler-cli\src\ngtools_impl.js:53:22)
at Function.NgTools_InternalApi_NG_2.listLazyRoutes (\node_modules@angular\compiler-cli\src\ngtools_api.js:91:39)
at AotPlugin._getLazyRoutesFromNgtools (node_modules@angular\cli\node_modules@ngtools\webpack\src\plugin.js:207:44)
at _donePromise.Promise.resolve.then.then.then.then.then (\node_modules@angular\cli\node_modules@ngtools\webpack\src\plugin.js:443:24)
at process._tickCallback (internal/process/next_tick.js:109:7)
To get it working i have to:
Any clue on how to get rid of this?
The text was updated successfully, but these errors were encountered: