Why does my Angular application give an error when run on StackBlitz?
I have an Angular application that runs fine on my machine using ng serve
, but when I run it on StackBlitz:
https://stackblitz.com/github/nickhodges/primedirective
I get the following error:
Error in /turbo_modules/@angular/compiler@7.0.4/bundles/compiler.umd.js (2617:21)
Can't resolve all parameters for ApplicationModule: (?).
I have updated the dependencies on the StackBlitz editor, and it still doesn't work, giving a slightly different error.
Error in /turbo_modules/@angular/compiler@7.1.0/bundles/compiler.umd.js (2497:21)
Can't resolve all parameters for ApplicationModule: (?).
Anyone have any idea why this error occurs on StackBlitz?
angular stackblitz
add a comment |
I have an Angular application that runs fine on my machine using ng serve
, but when I run it on StackBlitz:
https://stackblitz.com/github/nickhodges/primedirective
I get the following error:
Error in /turbo_modules/@angular/compiler@7.0.4/bundles/compiler.umd.js (2617:21)
Can't resolve all parameters for ApplicationModule: (?).
I have updated the dependencies on the StackBlitz editor, and it still doesn't work, giving a slightly different error.
Error in /turbo_modules/@angular/compiler@7.1.0/bundles/compiler.umd.js (2497:21)
Can't resolve all parameters for ApplicationModule: (?).
Anyone have any idea why this error occurs on StackBlitz?
angular stackblitz
add a comment |
I have an Angular application that runs fine on my machine using ng serve
, but when I run it on StackBlitz:
https://stackblitz.com/github/nickhodges/primedirective
I get the following error:
Error in /turbo_modules/@angular/compiler@7.0.4/bundles/compiler.umd.js (2617:21)
Can't resolve all parameters for ApplicationModule: (?).
I have updated the dependencies on the StackBlitz editor, and it still doesn't work, giving a slightly different error.
Error in /turbo_modules/@angular/compiler@7.1.0/bundles/compiler.umd.js (2497:21)
Can't resolve all parameters for ApplicationModule: (?).
Anyone have any idea why this error occurs on StackBlitz?
angular stackblitz
I have an Angular application that runs fine on my machine using ng serve
, but when I run it on StackBlitz:
https://stackblitz.com/github/nickhodges/primedirective
I get the following error:
Error in /turbo_modules/@angular/compiler@7.0.4/bundles/compiler.umd.js (2617:21)
Can't resolve all parameters for ApplicationModule: (?).
I have updated the dependencies on the StackBlitz editor, and it still doesn't work, giving a slightly different error.
Error in /turbo_modules/@angular/compiler@7.1.0/bundles/compiler.umd.js (2497:21)
Can't resolve all parameters for ApplicationModule: (?).
Anyone have any idea why this error occurs on StackBlitz?
angular stackblitz
angular stackblitz
asked Nov 26 '18 at 4:56
Nick HodgesNick Hodges
12.8k246101
12.8k246101
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
import 'core-js/es7/reflect';
include this line in your polyfills.ts
visit the link its working now https://github-pigpd9.stackblitz.io
and https://stackblitz.com/edit/github-pigpd9 (editorial url)
Thank you. That worked. You were first, and in five minutes, I will accept your answer.
– Nick Hodges
Nov 26 '18 at 5:08
You're welcome, happy to help @NickHodges
– Vaibhav Kumar Goyal
Nov 26 '18 at 5:22
add a comment |
yes this is because we have to import
import 'core-js/es7/reflect';
in our polyfils.ts file.
after including this it will work.
there is only one reason why it's happing and you can read that reason in the introduction to angular 7
this is happening when we upgrade Angular 5 to Angular 7
there is only one reason why it's happing and you can read that reason in introduction to angular 7 blog.angular.io/…
– yurzui
Nov 26 '18 at 5:06
wow, this awesome @yurzui thanks for sharing this.
– Hrishikesh Kale
Nov 26 '18 at 5:06
Thank you -- you were correct, but Vaibhav Kumar Goyal was first. ;-)
– Nick Hodges
Nov 26 '18 at 5:12
2
haha not an issue, we all are here to help each other. that doesn't matter. happy coding brother.
– Hrishikesh Kale
Nov 26 '18 at 5:13
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53474978%2fwhy-does-my-angular-application-give-an-error-when-run-on-stackblitz%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
import 'core-js/es7/reflect';
include this line in your polyfills.ts
visit the link its working now https://github-pigpd9.stackblitz.io
and https://stackblitz.com/edit/github-pigpd9 (editorial url)
Thank you. That worked. You were first, and in five minutes, I will accept your answer.
– Nick Hodges
Nov 26 '18 at 5:08
You're welcome, happy to help @NickHodges
– Vaibhav Kumar Goyal
Nov 26 '18 at 5:22
add a comment |
import 'core-js/es7/reflect';
include this line in your polyfills.ts
visit the link its working now https://github-pigpd9.stackblitz.io
and https://stackblitz.com/edit/github-pigpd9 (editorial url)
Thank you. That worked. You were first, and in five minutes, I will accept your answer.
– Nick Hodges
Nov 26 '18 at 5:08
You're welcome, happy to help @NickHodges
– Vaibhav Kumar Goyal
Nov 26 '18 at 5:22
add a comment |
import 'core-js/es7/reflect';
include this line in your polyfills.ts
visit the link its working now https://github-pigpd9.stackblitz.io
and https://stackblitz.com/edit/github-pigpd9 (editorial url)
import 'core-js/es7/reflect';
include this line in your polyfills.ts
visit the link its working now https://github-pigpd9.stackblitz.io
and https://stackblitz.com/edit/github-pigpd9 (editorial url)
answered Nov 26 '18 at 5:03
Vaibhav Kumar GoyalVaibhav Kumar Goyal
674613
674613
Thank you. That worked. You were first, and in five minutes, I will accept your answer.
– Nick Hodges
Nov 26 '18 at 5:08
You're welcome, happy to help @NickHodges
– Vaibhav Kumar Goyal
Nov 26 '18 at 5:22
add a comment |
Thank you. That worked. You were first, and in five minutes, I will accept your answer.
– Nick Hodges
Nov 26 '18 at 5:08
You're welcome, happy to help @NickHodges
– Vaibhav Kumar Goyal
Nov 26 '18 at 5:22
Thank you. That worked. You were first, and in five minutes, I will accept your answer.
– Nick Hodges
Nov 26 '18 at 5:08
Thank you. That worked. You were first, and in five minutes, I will accept your answer.
– Nick Hodges
Nov 26 '18 at 5:08
You're welcome, happy to help @NickHodges
– Vaibhav Kumar Goyal
Nov 26 '18 at 5:22
You're welcome, happy to help @NickHodges
– Vaibhav Kumar Goyal
Nov 26 '18 at 5:22
add a comment |
yes this is because we have to import
import 'core-js/es7/reflect';
in our polyfils.ts file.
after including this it will work.
there is only one reason why it's happing and you can read that reason in the introduction to angular 7
this is happening when we upgrade Angular 5 to Angular 7
there is only one reason why it's happing and you can read that reason in introduction to angular 7 blog.angular.io/…
– yurzui
Nov 26 '18 at 5:06
wow, this awesome @yurzui thanks for sharing this.
– Hrishikesh Kale
Nov 26 '18 at 5:06
Thank you -- you were correct, but Vaibhav Kumar Goyal was first. ;-)
– Nick Hodges
Nov 26 '18 at 5:12
2
haha not an issue, we all are here to help each other. that doesn't matter. happy coding brother.
– Hrishikesh Kale
Nov 26 '18 at 5:13
add a comment |
yes this is because we have to import
import 'core-js/es7/reflect';
in our polyfils.ts file.
after including this it will work.
there is only one reason why it's happing and you can read that reason in the introduction to angular 7
this is happening when we upgrade Angular 5 to Angular 7
there is only one reason why it's happing and you can read that reason in introduction to angular 7 blog.angular.io/…
– yurzui
Nov 26 '18 at 5:06
wow, this awesome @yurzui thanks for sharing this.
– Hrishikesh Kale
Nov 26 '18 at 5:06
Thank you -- you were correct, but Vaibhav Kumar Goyal was first. ;-)
– Nick Hodges
Nov 26 '18 at 5:12
2
haha not an issue, we all are here to help each other. that doesn't matter. happy coding brother.
– Hrishikesh Kale
Nov 26 '18 at 5:13
add a comment |
yes this is because we have to import
import 'core-js/es7/reflect';
in our polyfils.ts file.
after including this it will work.
there is only one reason why it's happing and you can read that reason in the introduction to angular 7
this is happening when we upgrade Angular 5 to Angular 7
yes this is because we have to import
import 'core-js/es7/reflect';
in our polyfils.ts file.
after including this it will work.
there is only one reason why it's happing and you can read that reason in the introduction to angular 7
this is happening when we upgrade Angular 5 to Angular 7
edited Nov 26 '18 at 5:08
answered Nov 26 '18 at 5:04
Hrishikesh KaleHrishikesh Kale
2,2382618
2,2382618
there is only one reason why it's happing and you can read that reason in introduction to angular 7 blog.angular.io/…
– yurzui
Nov 26 '18 at 5:06
wow, this awesome @yurzui thanks for sharing this.
– Hrishikesh Kale
Nov 26 '18 at 5:06
Thank you -- you were correct, but Vaibhav Kumar Goyal was first. ;-)
– Nick Hodges
Nov 26 '18 at 5:12
2
haha not an issue, we all are here to help each other. that doesn't matter. happy coding brother.
– Hrishikesh Kale
Nov 26 '18 at 5:13
add a comment |
there is only one reason why it's happing and you can read that reason in introduction to angular 7 blog.angular.io/…
– yurzui
Nov 26 '18 at 5:06
wow, this awesome @yurzui thanks for sharing this.
– Hrishikesh Kale
Nov 26 '18 at 5:06
Thank you -- you were correct, but Vaibhav Kumar Goyal was first. ;-)
– Nick Hodges
Nov 26 '18 at 5:12
2
haha not an issue, we all are here to help each other. that doesn't matter. happy coding brother.
– Hrishikesh Kale
Nov 26 '18 at 5:13
there is only one reason why it's happing and you can read that reason in introduction to angular 7 blog.angular.io/…
– yurzui
Nov 26 '18 at 5:06
there is only one reason why it's happing and you can read that reason in introduction to angular 7 blog.angular.io/…
– yurzui
Nov 26 '18 at 5:06
wow, this awesome @yurzui thanks for sharing this.
– Hrishikesh Kale
Nov 26 '18 at 5:06
wow, this awesome @yurzui thanks for sharing this.
– Hrishikesh Kale
Nov 26 '18 at 5:06
Thank you -- you were correct, but Vaibhav Kumar Goyal was first. ;-)
– Nick Hodges
Nov 26 '18 at 5:12
Thank you -- you were correct, but Vaibhav Kumar Goyal was first. ;-)
– Nick Hodges
Nov 26 '18 at 5:12
2
2
haha not an issue, we all are here to help each other. that doesn't matter. happy coding brother.
– Hrishikesh Kale
Nov 26 '18 at 5:13
haha not an issue, we all are here to help each other. that doesn't matter. happy coding brother.
– Hrishikesh Kale
Nov 26 '18 at 5:13
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53474978%2fwhy-does-my-angular-application-give-an-error-when-run-on-stackblitz%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown