Continue Discussion 50 replies
Mar '16

alonflowhub

I just ran meteor update and was prompted that I’m now on 1.3
I looked at my versions file, and meteor is at 1.1.2
If I run meteor update again it tells me I’m currently at 1.3
I’m trying to use import for an npm package, and I get this error:
W20160331-11:02:58.473(-6)? (STDERR) import barcode from “bwip-js”;
W20160331-11:02:58.474(-6)? (STDERR) ^^^^^^
W20160331-11:02:58.477(-6)? (STDERR) SyntaxError: Unexpected reserved word

3 replies
Mar '16 ▶ alonflowhub

trajano

try doing meteor add modules to enable the new module system.

1 reply
Mar '16 ▶ trajano

gadicc

and meteor add ecmascript for import statements :slight_smile:

1 reply
Mar '16

wesleyfsmith

Has anyone had issues with FlowRouter since upgrading?

I’m getting this error client side:

There is no route for the path: /

4 replies
Mar '16 ▶ gadicc

alonflowhub

Still no joy. require works though.

2 replies
Mar '16 ▶ alonflowhub

foobarbecue

I got into a similar situation trying to upgrade from 1.1 . In the end, I created a new meteor project and copied everything except my .meteor directory over and that fixed the problem.

Mar '16 ▶ wesleyfsmith

Spyridon

That is my exact issue, I made another post about it on here as well, no responses yet!

Mar '16

foobarbecue

I spent an evening thinking my imports weren’t working. I would set a breakpoint in chrome dev tools and check if the objects I needed had become available. They weren’t, but that’s because I didn’t have any code in that scope using those objects, and Meteor doesn’t load the stuff you aren’t using. I didn’t expect that, though. Hopefully this saves someone else the same headache.

1 reply
Mar '16 ▶ foobarbecue

foobarbecue

Actually… some of my imports just don’t seem to work… still trying to understand why.

Mar '16 ▶ alonflowhub

trajano

If require works, it could be that your import statements are not the first non-code elements of your file. import needs to be in the top only.