-
Notifications
You must be signed in to change notification settings - Fork 26
Article 1 bug #1
Comments
Hi Aaron, Thanks for testing my code examples! 👍 The error seems to be rooted in TypeScript compiler's rejection of non-TS-modules (like raw javascript files, for example). Here you can find more info regarding this problem: microsoft/TypeScript#2302 The newer version of TS accepts non-TS-files via the --allowJS switch: https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in-TypeScript#including-js-files-with---allowjs Regards, |
On Debian I am getting the same then the following error in Firefox :-
|
There should be more details regarding the last error with "main.js". |
The following installs the nightly build of typescript :-
and similar in package.json
Then added :-
to tsconfig.json And tied modifying Gulpfile.ts :-
But that did not seem to help either ! |
no thurther details on app/main.js not loading. |
Well, I have no other ideas than to ask you to upgrade your current Angular2 version. At this time the Betas were still around but my later articles jumped to RC. Of course, this is not a proper "solution" to the problems you have but playing around with a Beta while there are RC's available isn't something I'd recommend either. Also, take into account that in my later articles I've switched from SystemJS/Gulp to Webpack (I'm using the excellent Webpack-Starter from AngularClass) |
Angular2-datatable examples have the same bug. I cannot work out how to solve that one either ! |
Are you using the RC version or still the beta from the article? |
rc-17 IIRC Have tried both on Windows and Linux |
I don't think it depends on the OS. But sadly I'm not able to give you any further advice. It could be many things: your current node version, or some globally available packages that prevent local ones from executing. Or some issue with the build configs. |
okay I will try when I come back to it could you give me your Node.js and NPM versions please ? On 26 July 2016 at 00:09, Harris Brakmic [email protected] wrote:
|
node: 6.3.1 |
C:\Users\Aaron Gray>Node --version C:\Users\Aaron Gray>npm --version On 26 July 2016 at 00:41, Harris Brakmic [email protected] wrote:
|
on doing an
npm install
npm start
I get the following and the app is not loading in the browser, just a 'Loading ...' and a spinner
runtime is giving :-
The text was updated successfully, but these errors were encountered: