Coder Social home page Coder Social logo

Comments (11)

jedwards1211 avatar jedwards1211 commented on June 22, 2024

Huh, I don't think it's environment variables, maybe it failed to npm install within the core-js folder. In any case I need to investigate if the core-js custom build is even necessary anymore, since Meteor now has some builtin ES2015 support they may have fixed the Number constructor issue.

from meteor-webpack-react.

jthomaschewski avatar jthomaschewski commented on June 22, 2024

By looking at the error message I would think the same. But When running npm install and then node dev.js the corejs build runs fine.
So this happens only when using deploy.js instead of dev.js - on the same environment with the git repository cleaned before running the script.

from meteor-webpack-react.

jedwards1211 avatar jedwards1211 commented on June 22, 2024

I'm still getting the match errors when doing something like collection.find({}, {limit: 3}) due to the Number constructor polyfill with the latest version of Meteor...which would mean they're doing something weird to support it with their ES2015 plugin that doesn't also apply to externally transpiled code.
I should log an issue in their tracker about this...

from meteor-webpack-react.

jedwards1211 avatar jedwards1211 commented on June 22, 2024

Have you tried this on clean install? This would certainly indicate that the npm install call from core-js-custom-build.js isn't working on your CI server

> npm install
> cd node_modules/core-js
> npm install
> cd ../..
> node deploy.js meteor.com

from meteor-webpack-react.

jthomaschewski avatar jthomaschewski commented on June 22, 2024

Yes, this happens on a clean install of the current master of this skeleton.
And not only on my CI server (Debian) but also on my local machine (Arch Linux) - both node 4.1 and npm 3.
Running npm install manually on the core-js folder as you suggested helped. So there seems to be a problem with the "core-js-custom-build.js" call - but only in deploy.js. As it's called the same way there must be some difference somewhere else...

from meteor-webpack-react.

jedwards1211 avatar jedwards1211 commented on June 22, 2024

Weird. I do need to start using the latest versions of Node. I wonder if shelljs can cause any problems...I've noticed that exec calls swallow dynamic things printed to the terminal, like download progress meters that would show when running the core-js custom build via bash script.
I may not have much more time leftover to work on this project this week...but feel free to make a PR if you figure out what's wrong

from meteor-webpack-react.

tomitrescak avatar tomitrescak commented on June 22, 2024

Pardon my off topic. But which version of node is recommended? I am using 0.10.40 for compatibility issues with Meteor.

from meteor-webpack-react.

jthomaschewski avatar jthomaschewski commented on June 22, 2024

I'm using latest node 4.1.2 and npm 3.3.5 and don't have any issues.

jedwards1211 wrote:

Weird. I do need to start using the latest versions of Node

I assume this skeleton is tested with older versions of node

@tomitrescak what kind of compatibility issues do you have with meteor? I thought the meteor install includes node and is in independed from the system wide installed version.

from meteor-webpack-react.

tomitrescak avatar tomitrescak commented on June 22, 2024

@JBBr Not even Node 0.12.x was recommended for meteor. If you use MUP or some other deploy tools, the 0.10.40 is the latest they install. I did not try to discover why is that, just accepted it as a fact.

from meteor-webpack-react.

jthomaschewski avatar jthomaschewski commented on June 22, 2024

@tomitrescak Yes that's true for running meteor bundles directly with node (e.g. using meteor bundle or demeteorizer).
But in the skeleton the meteor command is executed in the background. Node is only used to run some scripts and webpack/webpack-dev-server.

The meteor server is still using the included node version (maybe still 0.10.x, maybe updated in Meteor 1.2)

from meteor-webpack-react.

jthomaschewski avatar jthomaschewski commented on June 22, 2024

Back to topic @jedwards1211:

I've found a way to fix the problem. It does only occur if core-js-custom-build is required inside a exported function (module.exports).
If it's required before module.exports build runs fine.

I'll do a PR

from meteor-webpack-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.