codesandbox / dependency-packager Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hi,
I'm the maintainer of Ember Twiddle and I was looking for a way to support dependencies from npm rather than CDNs which work but require packages to be built in UMD. I came across this project and was hoping to see if it worked for us.
Anyway, I cloned it and tried to yarn install and get this error message:
yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
error [email protected]: The platform "linux" is incompatible with this module.
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
As I understand it, fs-events should be made an optional dependency because it is not needed on non Mac platforms.
Using Ubuntu 18.04, node 12, and yarn 1.22.4
I'm trying to use CodeSandbox to verify a fix by installing a dependency directly from a GitHub branch. I've traced the error back to this project:
Could not fetch dependencies, please try again in a couple seconds: Something went wrong while packaging the dependency griddle-react@GriddleGriddle/Griddle#my-branch: ENOENT: no such file or directory, scandir '/tmp/1532470022/node_modules/griddle-react/dist/module'
The package's prepare
script is not being executed, probably due to --ignore-scripts
?
I'm wondering if --ignore-scripts
is necessary, or perhaps should be avoided for Git/GitHub versions?
I have a URL to an npm tarball. I can install it with yarn:
yarn add https://react-canaries-3adg6ifso.now.sh/13886/react
And it also works if I add it to a local package.json
file:
"react": "https://react-canaries-3adg6ifso.now.sh/13886/react"
But it doesn't work in CodeSandbox: https://codesandbox.io/s/pmy0470zj7
Great work! After reading the article https://hackernoon.com/how-we-make-npm-packages-work-in-the-browser-announcing-the-new-packager-6ce16aa4cee6 I got really inspired and I wanted to dig into this!
I'm currently reading through the codebase, and after attempting to put it all together without context I decided it may be worth a shot just seeing if a simple readme may help to describe parts of what's going on the in the codebase.
Cheers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.