react-grid-layout icon indicating copy to clipboard operation
react-grid-layout copied to clipboard

Installing from github repo: no build folder!

Open buddyp450 opened this issue 11 years ago • 11 comments

The build folder that is being referenced in index.js is missing when installing from github like:

jspm install github:STRML/react-grid-layout

index.js

module.exports = require('./build/ReactGridLayout');
module.exports.Responsive = require('./build/ResponsiveReactGridLayout');

buddyp450 avatar Aug 05 '15 22:08 buddyp450

Yeah, I generally avoid committing built files if I can help it (although I do commit a browser bundle with tags). The build folder is published to npm. Try using jspm to get the npm build instead.

STRML avatar Aug 05 '15 22:08 STRML

I was pulling the github version because the version on NPM is using a version of react-draggable that's broken with [email protected]... the emptyFunction is now part of the fbjs module. Either way, this issue was fixed in the latest version of react-draggable. If you could just push the versions up I'll be good to go. :)

buddyp450 avatar Aug 05 '15 22:08 buddyp450

Ah. Figures, that emptyFunction import was pretty dumb.

Unfortunately the master branch of this component is pretty broken right now due to some pending changes in <Draggable>.

I've pushed a few fixes and released as 0.8.5. That should have 0.14 compat.

STRML avatar Aug 05 '15 23:08 STRML

Sorry to bother you again with this but it appears the package has an extra github prefix in the config that's breaking the install:

C:\Git\react\client>jspm install npm:[email protected]
     Looking up npm:react-grid-layout
     Updating registry cache...
     Looking up npm:deep-equal
     Looking up npm:object-assign
     Looking up npm:react-resizable
     Looking up github:github:strml/react-draggable         <-- problem
     Looking up github:jspm/nodelibs-process
     Looking up github:jspm/nodelibs-fs
     Looking up github:strml/react-draggable

warn Error on lookup for github:github:strml/react-draggable, retrying (1).
     error: The requested URL returned error: 400 while accessing github:strml/react-draggable.git/info/refs?service=git-upload-pack
     fatal: HTTP request failed

     Looking up npm:process

warn Error on lookup for github:github:strml/react-draggable, retrying (2).
     error: The requested URL returned error: 400 while accessing github:strml/react-draggable.git/info/refs?service=git-upload-pack
     fatal: HTTP request failed


warn Error on lookup for github:github:strml/react-draggable, retrying (3).
     error: The requested URL returned error: 400 while accessing github:strml/react-draggable.git/info/refs?service=git-upload-pack
     fatal: HTTP request failed


warn Error on lookup for github:github:strml/react-draggable
     error: The requested URL returned error: 400 while accessing github:strml/react-draggable.git/info/refs?service=git-upload-pack
     fatal: HTTP request failed


err  Error looking up github:github:strml/react-draggable.

warn Installation changes not saved.

buddyp450 avatar Aug 06 '15 11:08 buddyp450

Yeah, have the same problem here using jspm to install from npm.

f15gdsy avatar Aug 25 '15 09:08 f15gdsy

@STRML 0.8.5 still uses "react-draggable": "github:strml/react-draggable#v0.3.3", which requires multiple things from react/lib, so not working with react 0.14.

https://github.com/STRML/react-grid-layout/blob/2c916b3164bffc57d543cd4272f91dde69cf8546/package.json#L37

rayshan avatar Sep 13 '15 23:09 rayshan

@rayshan +1 That dependency breaks [email protected] compatibility. Specifying a git commit version for npm where this is fixed isn't a option due to the missing build folder.

queimadus avatar Oct 08 '15 10:10 queimadus

+1

EDIT: Has anyone worked around this yet? I'm stuck mid-upgrade to React 0.14 now.

JosefWN avatar Oct 10 '15 15:10 JosefWN

+1

mdeacey avatar Nov 23 '15 12:11 mdeacey

+1

Running into the same issue when installing via npm

aghreed avatar Dec 01 '15 20:12 aghreed

I don't recommend using it (there are still some bugs to work out), but I've published 0.10.0-beta0, which has proper build/ and dist/ folders.

STRML avatar Dec 01 '15 20:12 STRML