electrode-io / electrode-electrify Goto Github PK
View Code? Open in Web Editor NEWElectrify is an webpack visualizer for analyzing webpack bundles.
Home Page: https://goo.gl/aAQvSV
License: Other
Electrify is an webpack visualizer for analyzing webpack bundles.
Home Page: https://goo.gl/aAQvSV
License: Other
/cc @georgeweiler
/cc @georgeweiler
I am playing around with electrify, and installed it globally, as per the README.
When I go to run it, it fails looking for module btoa:
Error: Cannot find module 'btoa'
I see btoa in the package.json file in the global node directory, but since btoa is set a as dev dependency it hasn't been installed. install btoa -g
doesn't work, nor does installing it as a module for the app I am trying to debug.
Forgive me if I'm missing something obvious.
Error: relative path without a basedir at node_modules/commondir/index.js:15:19
node_modules/electrode-electrify/index.js:72:14
My code looks like this:
var disc = require('electrode-electrify');
// ...
compiler.run(function(err, stats) {
disc.bundle(stats.toJson({
fields:null
}, function(err, html) {});
});
I tried to debug it and saw that in node_modules/electrode-electrify/index.js:72:14
var root = commondir(otherModules.map(pluck('identifier')))
otherModules.map(pluck('identifier')) contains also the entry point names
search icon
in input field.x
icon for resetting the input text.esc
key to reset input input text.Just tried setting up my first electrode project with yarn and ran into this:
error [email protected]: The engine "node" is incompatible with this module. Expected version "^4.2.6".
When using node v6.x.x, yarn install fails. If electrode-electrify-react-component can function fine with node v6, it would be great to see its version requirements changed so that yarn installs work as expected.
When I try to install electrode packages with yarn ( https://yarnpkg.com/en/ ) while running node.js 6.10, I get an error related to electrode-electrify-react-component:
> yo electrode
[ . . . ]
> rm -rf node_modules # you wouldn't ordinarily do this. I'm just doing it to demonstrate a quick way to this problem
> yarn install
yarn install v0.19.1
info No lockfile found.
[1/4] ๐ Resolving packages...
[ . . . ]
[2/4] ๐ Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version "^4.2.6".
This appears to be because electrode-electrify-react-component (which is referenced by electrode-webpack-reporter which is mutually referenced by electrode-archetype-react-app-dev) has an engines statement
"engines": {
"node": "^4.2.6",
"npm": "^3.5.3"
},
which doesn't support node 6.10.
11959 error Linux 4.4.0-45-generic
11960 error argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
11961 error node v6.9.1
11962 error npm v3.10.8
11963 error shasum check failed for /tmp/npm-3668-7de6c2ff/registry.npmjs.org/electrode-electrify/-/electrode-electrify-1.2.0.tgz
11963 error Expected: 220ccd27539dd2ce43bf3a5889775f5e0d897d79
11963 error Actual: eefc93dca3dc71a2c675d5e94075bef96667b294
11963 error From: https://registry.npmjs.org/electrode-electrify/-/electrode-electrify-1.2.0.tgz
11964 error If you need help, you may report this error at:
11964 error https://github.com/npm/npm/issues
11965 verbose exit [ 1, true ]
/cc @georgeweiler
The search bar doesn't appear when click like the demo. I'm using safari browser.
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.