meteor-mantra-kickstarter icon indicating copy to clipboard operation
meteor-mantra-kickstarter copied to clipboard

Broke because the meteor issue [1.3.3] import from absolute paths no longer work #7225

Open gantu opened this issue 8 years ago • 12 comments

I tried to fix it by relative paths but still no luck :( .

gantu avatar Jun 16 '16 12:06 gantu

I am seeing the same thing, yup.

martinhbramwell avatar Jun 17 '16 19:06 martinhbramwell

Replaced all absolute paths into relative path declarations. Right now it is not throwing any errors, but when I try to access the application through browser getting following errors on browser console:

Uncaught TypeError: Cannot read property 'html5' of undefined html5shiv.min.js:6

(anonymous function)    @   html5shiv.min.js:6
meteorInstall.client.modules._flatly.bootstrap.html5shiv.min.js @   html5shiv.min.js:4
fileEvaluate    @   install.js:153
require @   install.js:82
(anonymous function)

There is no route for the path: / router.js:347

gantu avatar Jun 18 '16 06:06 gantu

It gives me those errors so right now I just reverted back to the old version which is working for me ( 1.3.0). If Git is used in the project, just run git stash save to revert recent changes.

junibrosas avatar Jun 18 '16 10:06 junibrosas

How did you do that exactly?

When I change .meteor/release to 1.3.0 instead of 1.3.2.4 I get :

This project says that it uses Meteor 1.3.0, but you don't have that version of Meteor installed and the Meteor update servers don't have it either. Please edit the .meteor/release file in the project and change it to a valid Meteor release.

martinhbramwell avatar Jun 18 '16 13:06 martinhbramwell

@martinhbramwell , is your project working property before you updated to 1.3.3? and are you using Git? If so, just use git stash save

junibrosas avatar Jun 18 '16 13:06 junibrosas

@junibrosas I just revert to 1.3.2.4 ( in .meteor/release ) and everything works fine.

My question was about how you use 1.3.0 if it does not exist?

martinhbramwell avatar Jun 18 '16 14:06 martinhbramwell

@gantu

Uncaught TypeError: Cannot read property 'html5' of undefined html5shiv.min.js:6

I am also getting that. Show stopper. Back to 1.3.2.4 :-(

martinhbramwell avatar Jun 18 '16 14:06 martinhbramwell

@martinhbramwell try meteor update --release

junibrosas avatar Jun 18 '16 14:06 junibrosas

All I get is :

 you@yours:~/projects/mm-kick$ meteor update --release 1.3.0
 Meteor 1.3.0: unknown release.

martinhbramwell avatar Jun 18 '16 16:06 martinhbramwell

@martinhbramwell I read in following talk you have fixed this issue. Could you please share how you have fixed it? As I am getting same error if I upgrade to meteor 1.3.4.1.

gantu avatar Jun 30 '16 04:06 gantu

@gantu I described the steps to get to 1.3.4.1 in my first post in the "talk" you refer to.

But here it is again (slightly edited) :

  1. I added ´react-simple-di´ and ´react-komposer'' to my package.json
  2. I removed "babel-root-slash-import" from .babelrc, which solved the absolute references bug.
  3. I updated html5shiv.min.js, to their latest version which got rid of the ´Uncaught TypeError: Cannot read property 'html5' of undefined html5shiv.min.js:6´ nastiness
  4. I deleted respond.min.js` from the project, in order to fix, "TypeError: Cannot read property 'matchMedia' of undefined"

martinhbramwell avatar Jun 30 '16 10:06 martinhbramwell

Thanks @martinhbramwell, these steps are fixing the issue.

gantu avatar Jul 20 '16 10:07 gantu