browserify Questions
14
Solved
Consider the following two files:
app.js
import Game from './game/game';
import React from 'react';
import ReactDOM from 'react-dom';
export default (absPath) => {
let gameElement = document...
Deathless asked 13/10, 2016 at 19:13
3
I currently have this factor-bundle command which I use to bundle my files, and pull everything common into a common file:
browserify index.js bar-charts.js list-filter.js dashboard.js
-p [ fact...
Krasnodar asked 14/8, 2015 at 21:26
19
Solved
I'm writing a new app using (JavaScript) ES6 syntax through babel transpiler and the preset-es2015 plugins, as well as semantic-ui for the style.
index.js
import * as stylesheet from '../assets/...
Mccutcheon asked 17/12, 2015 at 15:35
2
I'm developing an Angular app. When trying to debug my directive's link function I run into problems with Chrome regarding source maps.
On the first load of the page (triggered by Gulp and Browser...
Titanomachy asked 3/5, 2015 at 11:14
11
I'm trying to browserify my react app for production using gulp and envify to setup NODE_ENV. So I can remove react warning, error reporting in the console, and even my code to disable some feature...
Grecize asked 18/11, 2015 at 15:10
6
This is my first day doing node, I'm having some problems trying to bundle some js files.
MyFolder
|-- app (folder)
| |-- Collections (contains: movies.js)
| |-- Models (contains: movie.js)
| |-...
Cutback asked 26/12, 2014 at 3:31
12
Solved
I have React js installed via NPM and using browserify to manage components in react. When an exception occurs in React, the console shows as
"Uncaught Error: Minified exception occurred; use t...
Euhemerize asked 12/4, 2015 at 7:4
3
Solved
This is the solution: fix it by converting the MD5 hex to base64 instead of the string.
Example for JS (Node.js or similar, browserify, etc.
new Buffer(md5, 'hex').toString('base64')
I just spe...
Gladine asked 7/11, 2015 at 0:19
5
Solved
I'm getting this error:
Error: Cannot find module 'browserify'
When I add this line to my app/server.js file:
var browserify = require('browserify');
Now I'm still new to Node, but I think ...
Gentlemanatarms asked 23/1, 2013 at 4:33
4
I'm trying to build a demo app using Node and I keep getting Uncaught TypeError: fs.readdirSync is not a function error when trying to use the Nutrionix NodeJS Client Library (https://github.com/nu...
Pause asked 12/1, 2016 at 4:58
2
Solved
My Javascript build process ends up inserting the keyword require() in the file. This is not supported in client side and causes a console error. I have added browserify per other SO answers, howev...
Orrin asked 21/8, 2020 at 20:17
1
I have used browserify to bundle up my js files. I get an error of the form
Uncaught TypeError: util.TextEncoder is not a constructor
at Object.1.util (bundle.js:3)
at o (bundle.js:1)
at r (bund...
Young asked 1/9, 2020 at 17:48
2
Solved
After upgrading to version 0.14.2, I see an error and recommendation to use ReactDOM.render() instead of React.render(), but whence do I import it?
When I don't import it and just running as it is...
Asinine asked 6/11, 2015 at 6:34
2
Solved
I have hdf5 file created using c++ application.i want to read the same hdf5 file inside browser using javascript.
Hdf5 file will be download from server using xhr or web socket request and the con...
Vinegarish asked 21/7, 2016 at 12:9
3
Solved
I'm trying to require a file with a variable in the path. Something like
const langCode = this.props.langCode; // en
let languageFile = require('../common/languages/' + langCode);
Where langCode...
Meeting asked 14/7, 2016 at 12:34
3
I'm using browserify and babel to transpile & bundle my script.
The problem is when I'm using React 16, it gives me this error message:
Uncaught Error: Minified React error #200; visit http:...
Parmentier asked 10/10, 2017 at 10:13
2
Solved
Is there a way to use a CommonJS module on a site like plnkr, JSFiddle, or JS Bin?
I'd want to turn it into a global.
This is for easily providing demos without having to use UMD.
I'd find the Gi...
Inflationism asked 23/3, 2015 at 2:26
7
Solved
I am new to the whole browserify thing.
I have been trying to use browserify + reactify + gulp to transform, minify and combine a React application.
As long as I have a single React.createClass wit...
Sacci asked 10/6, 2015 at 16:58
0
I am trying to use tiny-secp256k1 in a Javascript project. I would like the code to be compatible with Node.js and the browser, the require modules in the index file are:
const createHmac = require...
Mien asked 19/12, 2021 at 17:7
2
Solved
I am writing a typescript code that would run in a web-browser and would be tested with Node.JS.
My client code looks like below.
import * as WebSocket from 'ws';
export class SomeClient {...
Andryc asked 1/2, 2018 at 2:48
4
Solved
I tried something like:
var path = '../right/here';
var module = require(path);
but it can't find the module anymore this way, while:
var module = require('../right/here');
works like a charm...
Erick asked 14/3, 2015 at 17:25
3
Solved
I have files as represented:
-js/
- calc.js
- tool.js
-index.html
calc.js is a node module of following structure:
module.exports = {
calculate: function() {...},
getPrecision: function() {...
Imbrication asked 23/8, 2017 at 7:55
2
My code:
import $ from 'jquery'
import jQuery from 'jquery'
import owlCarousel from '../../node_modules/owlcarousel/owl-carousel/owl.carousel'
class App {
…
_initSlider() {
$("#partners-carous...
Betty asked 12/2, 2016 at 9:9
2
Solved
I'm making a simple flask app, using react for the front-end stuff. Right now I'm experimenting with importing React components from other files, without success. This is the error I'm getting:
Un...
Ultrasonics asked 28/3, 2016 at 3:12
12
Solved
I am new to nodejs and browserify. I started with this link .
I have file main.js which contains this code
var unique = require('uniq');
var data = [1, 2, 2, 3, 4, 5, 5, 5, 6];
this.LogData =fu...
Gamut asked 25/4, 2014 at 14:35
1 Next >
© 2022 - 2025 — McMap. All rights reserved.