Skip to content
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

client.browserify issue with meteor 1.3 beta.16 #552

Closed
danielbh opened this issue Mar 10, 2016 · 29 comments
Closed

client.browserify issue with meteor 1.3 beta.16 #552

danielbh opened this issue Mar 10, 2016 · 29 comments

Comments

@danielbh
Copy link

I was trying to add flowrouter to the new beta 16 that just came out: https://github.com/meteor/meteor/releases/tag/release%2FMETEOR%401.3-beta.16

I received the following error just for installing the package and without any coding whatsoever...

=> Errors prevented startup:

While processing files with cosmos:browserify (for target web.browser):
packages/kadira:flow-router/client.browserify.js: Arguments to path.resolve must be strings

Browserify options:

undefined

I have no idea what is causing this. I looked at: https://github.com/kadirahq/flow-router/blob/master/client.browserify.js

and I don't see any issue with it. What are your thoughts? Thanks.

@suhail-ansari-apconic
Copy link

There is already an issue created on meteor git repository and here is answer from benjamin. Basically flowrouter has to remove dependency from browserify and use modules.

meteor/meteor#6449

@mcbain
Copy link

mcbain commented Mar 10, 2016

+1

@huttonr
Copy link

huttonr commented Mar 14, 2016

👍

@suhail-ansari-apconic
Copy link

Are we going to see this fixed any time soon. I already see a PR related to this. Beta 16 solves a lot of issues we were facing due to node defaults being not available but cannot use it because of this problem.

@patrickml
Copy link
Contributor

👍

@patrickml
Copy link
Contributor

UPDATE : issue still persists on 1.3-rc.1

@arunoda
Copy link
Contributor

arunoda commented Mar 16, 2016

For what ever the reason, I can't publish a new version to some dependency issues. I assume, that's because of we are using a RC version. I think meteor packaging system has some special meaning for tagged releases like above.

So, I suggest you to use this branch directly.
See: use-meteor-modules-support

I'll publish a new version, when Meteor 1.3 released. (I hope it'll happen soon)

@sgasser
Copy link

sgasser commented Mar 16, 2016

@arunoda thx
How we can use this branch directly?

@suhail-ansari-apconic
Copy link

Just clone or download this branch code to your local packages folder until kadira fixes it. By the way the release date for meteor is March 21.

@richard-edwards
Copy link

I created a packages folder under my application root and cd' to the packages folder, cloned the repo and ran meteor run and same error for me. Meteor newb here so maybe I'm misunderstanding what to do. The module I'm using is kadira:flow-router-ssr, and the package I cloned that was created in packages was flow-router, does that have any bearing?

@suhail-ansari-apconic
Copy link

Just remove kadirahq:flow-router-ssr from your packages. Clone this repo with this branch to your packages then run

@tmeasday
Copy link

@arunoda can we figure out what the problem with publishing is? It'd be super useful to get this out before 1.3 to ensure there aren't any issues with 1.3 we need to fix!

@macrozone
Copy link

Same issue as @redwards1966, I did also clone the repo in my packages folder, checked out use-meteor-modules-support and still got the same error.

What i found out is, that if you downgrade meteor, run it and upgrade again, the error no longer occures until you do a meteor reset or similar.

Update: my error is not ecaclty the same, it is:

While processing files with cosmos:browserify (for target web.browser):
   packages/react-runtime-dev/react.browserify.js: Arguments to path.resolve must be strings

   Browserify options:
   >  undefined

Strange, this file ' packages/react-runtime-dev/react.browserify.js' seems not to exist on my machine...

@patrickml
Copy link
Contributor

Is there anyway you can just create an Npm package?
On Wed, Mar 16, 2016 at 6:08 PM Marco Wettstein [email protected]
wrote:

Same issue as @redwards1966 https://github.com/redwards1966, I did also
clone the repo in my packages folder, checked out
use-meteor-modules-support and still got the same error.

What i found out is, that if you downgrade meteor, run it and upgrade
again, the error no longer occures until you do a meteor reset or similar.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#552 (comment)

@arunoda
Copy link
Contributor

arunoda commented Mar 16, 2016

Okay. I managed to publish a version of Flow Router SSR to the packaging server.
Use this version: v3.12.1

This version has some minor test failures. (comes with porting to RC).
I'll fix them in coming days. But I publish this because otherwise, it's hard to test the RC.

@tmeasday
Copy link

Thanks so much @arunoda!

On Thu, 17 Mar 2016 at 09:47 Arunoda Susiripala [email protected]
wrote:

Okay. I managed to publish a version of Flow Router SSR to the packaging
server.
Use this version: v3.12.1

This version has some minor test failures. (comes with porting to RC).
I'll fix them in coming days. But I publish this because otherwise, it's
hard to test the RC.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#552 (comment)

@arunoda
Copy link
Contributor

arunoda commented Mar 16, 2016

@tmeasday I had to use meteor publish --release [email protected].

So, if there's a new RC, do I need to publish again?

@tmeasday
Copy link

@arunoda, nope. You just need to use --release when publishing packages that use features from new releases.

@arunoda
Copy link
Contributor

arunoda commented Mar 16, 2016

@tmeasday That's great.
So, [email protected] comes out, it'll work properly.

@tmeasday
Copy link

@arunoda and what about a version of flow-router vanilla?

@arunoda
Copy link
Contributor

arunoda commented Mar 16, 2016

Yeah. I can do that too. Will do it, I think that'll be pretty useful.

@merlinstardust
Copy link

That would be much appreciated! I was just about to start using Mantra, but since Mantra relies on on flow-router, I can't get my project started

@arunoda
Copy link
Contributor

arunoda commented Mar 16, 2016

@merlinpatt just checkout the sample repo again. I've updated to use this version.

@merlinstardust
Copy link

I'm using the mantra-cli to create my starting repo, which uses the vanilla kadira:flow-router package in the create command.

@arunoda
Copy link
Contributor

arunoda commented Mar 16, 2016

@tmeasday @merlinpatt done.
try updating the vanilla FlowRouter.

@merlinstardust
Copy link

Thanks @arunoda. You're amazing with your super quick fixes!

@tmeasday
Copy link

Awesome: meteor/todos@91fce29

@arunoda
Copy link
Contributor

arunoda commented Mar 17, 2016

We fixed some issues we had with Meteor 1.3 RC-1 and now you can use the SSR version with the confidence :) Thanks all for the help.

@arunoda arunoda closed this as completed Mar 17, 2016
@Dev1an
Copy link

Dev1an commented Mar 19, 2016

@suhail-ansari-apconic How do you now the meteor 1.3 release date?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests