[ ] Regression
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Injectable doesn't seem to be importable (following the passport authentication example):
[ts] Module '"/Users/me/Development/nest/node_modules/@nestjs/common/index"' has no exported member 'Injectable'.
import Injectable
This should be importable
Just try importing Injectable
import { Injectable } from '@nestjs/common';
Nest version: 4.6.6
For Tooling issues:
- Node version: XX
v9.5.0
- Platform:
macOS
Others:
Also looks like nest crashes when starting up and @Injectable()
is used:
@Injectable()
^
TypeError: common_1.Injectable is not a function
You need to update Nest to v5, you are using Nest version: 4.6.6
and @Injectable
was introduced in version 5.
@shekohex +1
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
You need to update Nest to v5, you are using
Nest version: 4.6.6
and@Injectable
was introduced in version 5.