-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot call method 'split' of undefined #10083
Comments
Thanks for the thorough report! This seems to be a problem in the code that rewrites Node stack traces to reflect source maps generated during compilation of the code that implements the In other words, the bug might have something to do with changes in the way Babel generates those source maps, or perhaps due to updates to the This problem might have gone unnoticed also because it only happens when an unexpected exception is thrown by the build tool, since otherwise there is no need to rewrite source maps. Have you tried running your reproduction after updating to the latest Meteor 1.7.1 beta release? meteor update --release 1.7.1-beta.19 |
When I try running the build script with 1.7.1-beta.19 (or 1.7.1-beta.18), I end up getting this output
Which I've never seen before. I tested the build script on my stable 1.6.0.1 version and it was able to download the Meteor distribution, so I'm guessing something in jshimko/meteor-launchpad isn't working the same for beta releases (source that calls the meteor install script) https://github.com/jshimko/meteor-launchpad/blob/master/scripts/install-meteor.sh Additionally, I tried running the source commands on a local virtual machine and this is the install file that was modified: https://gist.github.com/scottcwilliams511/2baac07320bbe4cc2dc11aa2d05f6ef1
However, when I changed RELEASE="1.7.1-beta.18" to RELEASE="1.7.0.3" the download starts fine and doesn't bomb out. |
It looks like you're trying to download the full Meteor distribution (from install.meteor.com) for a beta version, which won't work because we don't publish those archives until the final release. To install Meteor 1.7.1 beta versions, you should run (for example) meteor update --release 1.7.1-beta.21 If you run that command in an application directory, it will update the application to the beta version. Alternatively, if you want to create a new app with the beta version, you can run meteor create --release 1.7.1-beta.21 my-new-app |
@benjamn I encountered this exact same issue while trying to upgrade a project from 1.5.4.2 to 1.7.0.3. The problem turned out to be a template compile error. The error parsing function in parse-stack.js seems to be expecting a javascript error object when it's called during the build process, but for at least some kind of template parse problems it's getting a long string instead, so err.stack.split() fails with a "Cannot read property 'split' of undefined". Just for fun I threw a console.log(err) at the top of parse(err) and got the following output:
So I fixed my improperly formatted line break and I was off to the races. |
I had same problem on 1.7.1-beta.15. |
This should be fixed if you update your app with |
Thanks you! This allowed me to see this error:
which allowed me to diagnose and fix what was wrong with the app. All is good now! Also, congrats on the 1.8 release! |
@scottcwilliams511 I am also getting the same errors
I would like to know how you have fixed this errors. Thank u |
Assuming your issue was identical to mine, this is what I followed: Urigo/angular-meteor#1878 |
This "bug" seems to have happened to the past to people: #7311
On updating Meteor 1.6.0.1 to 1.7.0.3, the build process is now failing.
Running my Meteor application locally with 1.7.0.3 works fine though.
I am using jshimko/meteor-launchpad to build for docker. I have configured launchpad.conf to contain
This is .meteor/packages: https://gist.github.com/scottcwilliams511/513af2f9b8453d4d5e851603d59ddbcd
This is .meteor/versions: https://gist.github.com/scottcwilliams511/4a82d2064e71bfc9e86e5a0d3e247166
This is package.json:
https://gist.github.com/scottcwilliams511/af309efcd15c078b13eda76c41f06e01
Some output:
I have tried removing pieces of the project and re-building as suggested here: #7311 (comment) but have not had luck.
The text was updated successfully, but these errors were encountered: