Category : browserify

I am using Browserify to bundle a YouTube scraper as a client side js. The node code is pretty straight forward and runs, when I convert it, it ends up with Uncaught (in promise) TypeError: The "listener" argument must be of type Function. Received type object. Any pointers would be much appreciated. Node code const ..

Read more

Good afternoon everyone, I’m using the Docxtemplater library, with its FileSaver.min.js and jszip-utils.js libraries (from Here). This is what I did: btnPrint.on("click", function (){ getWordTemplate(); }) const getWordTemplate = () => { loadFile("text.docx", (err, content) => { if (err) { showAlert("Impossibile leggere il file", "warning"); } else { const doc = new Docxtemplater(content); doc.setData({ "first_name": ..

Read more

i’m new at babel and browserify, I have a problem with transpile with browserify and babel, i’ve installed the threejs package and add import * as THREE from ‘three’ it works fine when i transpiled using command below browserify input.js > output.js -t babelify but when i add another import import {GLTFLoader} from ‘../node_modules/three/examples/jsm/loaders/GLTFLoader’ and ..

Read more

I want to bundle https://github.com/MaciejWWojcik/three-plain-animator and generate something like plainAnimator.js file So in main.js I should be able to import it like: import { PlainAnimator } from "plainAnimator.js" I’ve tried browserify: browserify node_modules/three-plain-animator/lib/plain-animator.js -o plainAnimator.js It generates the bundle and works when I use script tag but import doesn’t work Source: Ask Javascript..

Read more

First I bundled my main.js file with bundle.js my main.js: const Uppy = require(‘@uppy/core’); const XHRUpload = require(‘@uppy/xhr-upload’); const Dashboard = require(‘@uppy/dashboard’); const Webcam = require(‘@uppy/webcam’); const ImageEditor = require(‘@uppy/image-editor’) const uppy = new Uppy({ id: ‘uppy’, autoProceed: false, restrictions: { maxFileSize: null, minFileSize: null, maxTotalFileSize: null, maxNumberOfFiles: null, minNumberOfFiles: null, allowedFileTypes: null } }).use(Dashboard,{ ..

Read more

I use a package whose developer only included webpack instructions: ///webpack.config.js vendor: [ ….. ‘xlsx’, ‘file-saver’ ], ….. node: {fs: ’empty’}, externals: [ {‘./cptable’: ‘var cptable’}, {‘./jszip’: ‘jszip’} ] My project runs with browserify in gulp, and when the ES6 file containing the line import ReactDataExport from ‘react-data-export’; is loaded, even though I have commented ..

Read more