Comments (19)
Yes, It should work!
from image-sequencer.
There's a small problem here:
https://runkit.com/embed/epjvm3wepv8c
TypeError: ImageSequencer is not a function
from image-sequencer.
Is this still waiting for npmjs to update?
from image-sequencer.
from image-sequencer.
I realized we have the same issue as in fisheyegl/#17
We are requiring in ./dist/image-sequencer.js
which returns an empty object {}
. That is why the RunKit isn't working.
While testing we usually do require('./src/ImageSequencer.js')
and not require('./dist/ImageSequencer.js')
. The latter returns an empty object, the former returns the intended Image Sequencer function.
from image-sequencer.
Is there a workaround for this such that browserify produces a file which can be both used in Browser as well as required in Node?
from image-sequencer.
from image-sequencer.
I already am instantiating according to the presence of window
. That's why :
./src/ImageSequencer.js
can be required in Node.js./dist/image-sequencer.js
can be run in Browser
Maybe this has to do with the way Browserify handles everything, I am not sure...
from image-sequencer.
What would happen if we changed package.json
to:
...
main: "src/ImageSequencer.js"
...
?
Whoever is using npm will be require()
-ing Image Sequencer, so it should work for everyone...
Is ./dist/image-sequencer.js
supposed to be served by npm, or by a CDN?
from image-sequencer.
from image-sequencer.
Yes I have tried it! It works!
npm i git+https://github.com/ccpandhare/image-sequencer.git#npm
from image-sequencer.
from image-sequencer.
I have merged the PR ( #84 ).
I don't have publish privileges, So I can't bump the version, so I request you to publish the new version!
It must work this time :-)
from image-sequencer.
OK, i published but then noticed #84 failed tests? Can you figure that out?
https://www.npmjs.com/package/image-sequencer
Thanks!
from image-sequencer.
I checked TravisCI. #84 had passed. The build didn't fail, I think the "cross" is shown on the commit in #84 because I merged it in before the TravisCI build completed.
from image-sequencer.
from image-sequencer.
https://runkit.com/embed/hvtvir55gm5v
It works now!
from image-sequencer.
Closing this issue.
from image-sequencer.
Great, can you add this to the README too?
from image-sequencer.
Related Issues (20)
- Adding an image sharpening module
- Removing scroll-to-top on mobile devices HOT 5
- Focus stacking module implementation HOT 1
- Halftone angle (in radians) needs to be a decimal instead of an integer HOT 3
- Dependencies Requiring Manual Upgrades HOT 1
- Remove Unused Dependencies HOT 1
- Supported NodeJS Versions HOT 3
- New module idea: ocr text recognition
- Use Modern JS HOT 2
- Can add units to the dimension of the image HOT 10
- How do I specify "executablePath" when calling Puppeteer HOT 5
- yarn.lock vs. package-lock.json HOT 1
- Checklist and coordination for v3.7.2 patch release and v3.7.3 follow-up patch release HOT 8
- Ideas for next release HOT 2
- Yarn complains about [email protected] expecting node 0.8.x HOT 13
- New module idea: descreen/dehalftone/inverse halftone
- Checklist and coordination for v3.8.0 minor release
- Incorrect local path for manipulation.wasm when using as an embedded library in MapKnitter.org
- eslint-error : Expected linebreaks to be 'LF' but found 'CLRF' HOT 1
- all thumbnails are not visible in the add step box HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image-sequencer.