This is great. Hope that, NPM module overriding issue is fixed with this.
Great to see this release! The ānormalā npm
support is one of the best things coming to Meteor so far. This really helps to get tons of awesome packages available in Meteor (server AND client) without any special (wrapper) workarounds. Love it!
Proper imports instead of globals is going to save me SO much time tracking down āsystem exited with error 1ā when Iām trying to reference a global that doesnāt exist. I should get a real compiler error when I miss an import which is worlds better.
I hope to see globals gone as soon as possible. Thank you for taking the logical first step towards that
Anyone using Flow Router SSR & React? I am having tons of errorsā¦ had to revert back. Also, was having āunable to importā from braintree npm modules.
Have no fear, Ben is here!
Known issue, hopefully a fix soon!
New release!
To update to the latest beta release, run the following command in your meteor project:
meteor update --release 1.3-modules-beta.4
Bugs fixed in this release:
That was quick! Awesome job!
Iāve gotta say, this is a really good direction for Meteor! Iām developing local NPM packages by npm link
ing them into my Meteor 1.3-beta.3 app, then if I make any changes to those locally-developed packages Meteor will automatically detect that and reload the client, which is really nice!
Am I right in my understanding that currently (beta.3) any npm package that uses any native node module (like net, tls, path etc) will not be possible to import?
e.g. I create a new project, npm init; npm install --save request
then add import request from 'request';
to a server-only block, and get something like
(...) node_modules/request/request.js: could not resolve module "http"
when running meteor
?
That looks like this bug:
Fixed in beta.4
Thanks @sashko, I was just scrolling up a bit and noticed and followed the GH bug link. Updating to beta.4, didnāt know it was out yet!
EDIT: Works, fantastic job & excellent timing on the release!
It seems that Meteor 1.3 includes all style files from local packages. Even when they are not added by addFiles
. Why is that?
Example:
I have package which have some .styl files in addFiles
and some are just not used. They are in main package folder in for example /packages/my-package
Now in 1.2 they are ignored and only those from addFiles
are bundled and in 1.3 they are also bundled which is in my opinion wrong, but maybe I donāt have a broader view of something.
Iāll be grateful for all the tips. Thanks.
Iām using our xolvio:backdoor
package, which allows you to run arbitrary code on the server using a method. This package is used by Chimpās server.execute
method, which allows tests to run code on the server.
Iād like to require modules at runtime from my tests like this:
server.execute(function() {
const AccountHolder = require('./account-holder');
const accountHolder = new AccountHolder();
});
I canāt use import
since the code is not top-level of course, and require
is undefined.
@benjamn is there a way to use require at runtime in 1.3? Or some other solution for my use-case?
Iāve upgraded to beta4 and my build time is now averaging around the ~9sec. I remember that beta2~3 used to be in the 2-3 sec range. Anyone else noticing this? No hard numbers on beta2 but itās very noticible compared to using webpack:webpack which I donāt think works with 1.3ā¦
1.3 is probably toward the end of February.
According to the meeting notes of 20th Jan:
https://github.com/meteor/guide/blob/master/meeting-notes.md
Iāve got a weird issue: I used meteor create --release 1.3-modules-beta.5 myapp
to create a project. In the browser none of the javascript on the template callbacks (onCreated etc) is working, and when I look at the files that were uploaded in the browser under the Sources tab, all my files are prefixed ātemplate.ā and contain java code to render the pageās html, rather than the source code for the js file.
E.g. rather than showing my javascript below for my testTemplate.js file
<template name="test_template"> <p> <a href="/">Back</a> <br/> Test template </p> </template>
Instead the template.testTemplate.js file on the browser is reported as:
Template.__checkName("test_template"); Template["test_template"] = new Template("Template.test_template", (function() { var view = this; return HTML.Raw('<p>\n <a href="/">Back</a> <br>\n Test template\n </p>'); }));
Iāve compared everything I can to the latest version of Todos but I canāt work out whatās going on?
@juliancwirko it was a bug that has been fixed. Not sure when the next beta release is though. See https://github.com/meteor/meteor/issues/5999
Any chance your browser debugger has source maps turned off?
New release!
To update to the latest beta release, run the following command in your meteor project:
meteor update --release 1.3-modules-beta.5
New features: https://github.com/meteor/meteor/issues/5788#issuecomment-174621057
The Babel 6 upgrade was a pretty substantial change, so please keep an eye out for transform-related bugs!