Closed michelLammensSmart closed 6 years ago
Can you post the whole file where you used the @select
in? Seems like you are not using it inside a component, and therefore this
is not available.
@select
is a typescript decorator that will execute some code when the class initializes. It is meant to decorate a field inside an Angular Component.
This is a...
What toolchain are you using for transpilation/bundling?
ngc
Environment
NodeJS Version: 8.11.3 Typescript Version:2.7.2 Angular Version:6.0.8 @angular-redux/store version:^9.0.0 @angular/cli version: (if applicable) : 6.0.8 OS:linux x64
Link to repo showing the issus
Expected Behaviour:
@select() user; return => object user;
Actual Behaviour:
@select() user; return => tslib__WEBPACK_IMPORTED_MODULE_0__ is not defined
Stack Trace/Error Message:
"ReferenceError: tslib__WEBPACK_IMPORTED_MODULE_0__ is not defined
Additional Notes:
ts config:
{ "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "importHelpers": true, "target": "es5", "typeRoots": [ "node_modules/@types" ], "lib": [ "es2017", "dom" ] } }