Reputation: 801
I have service and I am trying but I get error when I start page:
compiled .js file has
reuired('@angular/core')
What can I check?
Upvotes: 0
Views: 247
Reputation: 123901
Just my experience with VS... regardless of the quick start tsconfig.json setting documented here
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
...
in VS I had to use
{
"compilerOptions": {
"target": "es5",
"module": "system",
module commonjs
was generating modules with require not with System.register([
check the generated .js file...
Upvotes: 2