pbastowski / angular-meteor-babel

Babel 5 ES6 transpiler for angular-meteor (includes ng-annotate)
11 stars 4 forks source link

compileNGScript - Object has no method 'existsSync' #25

Closed fromthemills closed 8 years ago

fromthemills commented 8 years ago

Hi,

just tried upgrading my project to the latest beta version of meteor (1.3.3-beta.1) to get a bug fixed. I got the following error in your package.

=> Errors prevented startup:  
   While loading plugin `compileNGScript` from package `pbastowski:angular-babel`:
   packages/compileNGScript_plugin.js:164:12: Object [object Object] has no method 'existsSync'
   at getCustomConfig (packages/compileNGScript_plugin.js:164:12)
   at Package (packages/compileNGScript_plugin.js:37:20)
   at packages/compileNGScript_plugin.js:179:4
   at packages/compileNGScript_plugin.js:186:3

Is this some breaking change they overlooked in the beta or might this be related to your package? I hope the error gives you enough info. Let me know if you need more detailed information about my setup.

pbastowski commented 8 years ago

I have just pushed 1.3.5. Please try it and let me know if it helps.

Ben305 commented 8 years ago

I was running into the same problem, 1.3.5 seems to fixes that. Can you remove the console.log statement again?

fromthemills commented 8 years ago

Yup, I can confirm this is fixed in version 1.3.6. Thanks for the quick response!

pbastowski commented 8 years ago

@Ben305 Done and thanks for catching that.

iain17 commented 8 years ago

I've just tried updating to Meteor 1.3.4.1 and still have this issue?

Ben305 commented 8 years ago

@iain17 Are you sure that you are using the latest version? Updating the Meteor Release doesn't mean that the used package version is updated, too.

iain17 commented 8 years ago

@Ben305 I made sure to update every package before doing the meteor update. Has the atmosphere package been updated?

pbastowski commented 8 years ago

@iain17 If you are asking if pbastowski:angular-babel has been upgraded to work with Meteor 1.3 then the answer is yes. I use it myself even with Meteor 1.4-beta.2.

If you share a link to your repo then I could have a look at it for you.

ppss198 commented 8 years ago

I've just tried updating to Meteor 1.3.4.1 and still have this issue.........

xmapp 1.4: updated to Meteor 1.3.4.1.

=> Started proxy. => Started MongoDB. => Errors prevented startup:

While loading plugin compileNGScript from package pbastowski:angular-babel:

:155:12: Object [object Object] has no method 'existsSync' at getCustomConfig (:155:12) at Package (:37:20) at :170:4 at :177:3
pbastowski commented 8 years ago

@ppss198 The latest version is 1.3.6. Try this

meteor update pbastowski:angular-babel

If you still get the error then please post the contents of your .meteor/versions file and .meteor/packages file, so I can see what version of the package Meteor is working with.

ppss198 commented 8 years ago

it's right, the problem is solved,thank you very much

hansonchun commented 8 years ago

Hi,

I just updated to Meteor 1.3.4.1 as well and started getting this issue. I'm currently on angular-babel 1.3.6.

Started MongoDB. Errors prevented startup:

While processing files with pbastowski:angular-babel (for target web.browser): packages/compileNGScript/plugin/ng-script-compiler.js:107:1: error: couldn't process source due to parse error: Unexpected character '#' (1:0) at processFile (packages/compileNGScript/plugin/ng-script-compiler.js:107:1) at Array.forEach (native) at Object.processFiles (packages/compileNGScript/plugin/ng-script-compiler.js:39:1)

While processing files with angular-templates (for target web.browser): test/android/project/build/intermediates/assets/debug/www/application/index.html:1: Can't set DOCTYPE here. (Meteor sets <!DOCTYPE html> for you) test/android/project/assets/www/application/index.html:1: Can't set DOCTYPE here. (Meteor sets <!DOCTYPE html> for you)

While processing files with pbastowski:angular-babel (for target os.windows.x86_32): packages/compileNGScript/plugin/ng-script-compiler.js:107:1: error: couldn't process source due to parse error:

Unexpected character '#' (1:0) at processFile (packages/compileNGScript/plugin/ng-script-compiler.js:107:1) at Array.forEach (native) at Object.processFiles (packages/compileNGScript/plugin/ng-script-compiler.js:39:1)

pbastowski commented 8 years ago

@hansonchun

I don't have a Windows machine at this moment, so, it's not possible for me to replicate your issue. Having said that, try doing this:

  1. Stop your meteor app
  2. Delete the ./meteor/local directory, which is where Meteor caches all it's compiled code
  3. Start your meteor app again

If you keep seeing the same problem then please post a link to your repo and I will have a look at it for you.

Please note that I will be away on vacation for the next 10 days, so, I may not be able to respond to your query quickly.

hansonchun commented 8 years ago

Yes, that seemed to fix it. Thanks so much!

kvasilaky commented 8 years ago

Hi: I am following this tutorial to create a forum with meteor. I am 1 hour new to meteor and trying to get this up an running quickly: https://www.codementor.io/meteor/tutorial/build-forum-engine-using-meteor-angularjs

I updated my meteor version (meteor update pbastowski:angular-babel). I'm having trouble running the app at the point where it says: "At this point you can run the app."

The error I get is " While processing files with angular-templates (for target web.browser): native: main.html has wrong layout"

main.html (below) is in client/main.html, along with main.js, which calls it. Can anyone suggest any fixes?

Thank you!!! KV

forum

Welcome to Meteor!

{{> hello}} {{> info}}
pbastowski commented 8 years ago

Hi @kathrynthegreat The problem appears to be reported by the angular-templates package, as it states in the error message you supplied, and not pbastowski:angular-babel.

Most likely, if you have removed blaze-html-templates and added angular-templates, the issue is to do with some extra code in your main.html, such as

<template ...>
....
</template>

I had a look at the tutorial link you posted above, but I don't see any main.html in it. There is an index.html there, however???

To update meteor itself type in meteor update without any further package names. Otherwise only the package you specified will be updated.

If you provide a link to your repo on github then I can have a quick look and help you a bit more.