2,947
questions
1
vote
0
answers
106
views
How to use 3rd party plugins with standalone Prettier API?
I'm writing a web extension to use at work that converts text into formatted code blocks using Prism and Prettier. We primarily use TypeScript and Java. Since the TypeScript plugin is included in ...
0
votes
0
answers
67
views
How to use ES export with browserify as main entry point?
I need to create a UMD file so I can use Firebase on CodePen without an ES Module, I know that ES Modules are good support, but I want to use CodePen scripts.
I have this code:
import firebase from '...
0
votes
1
answer
311
views
Browserify Error: Uncaught TypeError: Unable to determine current node version in bundle.js
so I recently installed browserify into my application, and I'm getting this error in the Chrome Dev console:
bundle.js:10677 Uncaught TypeError: Unable to determine current node version
at ...
0
votes
0
answers
14
views
Attempting to Bundle a Require Command For a Chrome Extension [duplicate]
I want to create a chrome extension that will print out accessibility errors to the console using the axe-core library. My plan was I originally thought I could do this with Browserify to bundle the ...
0
votes
0
answers
37
views
How can I resolve the problem by using CoinGecko ApI: webpack < 5 used to include polyfills for node.js core modules by default
I am trying to use coinGecko API in my react app. I installed coingecko-api (npm install coingecko-api) and I created coinServices.js:
import CoinGecko from "coingecko-api";
const ...
0
votes
1
answer
41
views
Expose $ and jQuery to global scope with Typescript, Browserify and Gulp
How do I make a bundle file that puts $ and jQuery in the window/global scope so that other bundles can see it?
I am trying to expose JQuery and Bootstrap from a common vendor file.
I want my Layout....
0
votes
1
answer
37
views
Bundling separate vendor file with gulp+browserify
UPDATE 1
I am getting closer but still having an issue with some modules.
Specifically, I am trying to include Morris.js (morris.js06) package.
I now have my gulp seeming able to generate separate app ...
0
votes
1
answer
53
views
ERROR in ./node_modules/cookie-signature/index.js 5:13-30
Module not found: Error: Can't resolve 'crypto' in /Users/ravinbandara/Desktop/E-Commerce/E-Shop/frontend/node_modules/cookie-signature
BREAKING CHANGE:
webpack < 5 used to include polyfills for ...
0
votes
0
answers
33
views
How to fix --mangle-props error in uglify browserify?
I'm new to this, so I'm encountering an error. Basically I'm using this browserify entry.js -d | uglifyjs -c -m --mangle-props --toplevel -o bundle.js, where --mangle-props would be 'mangle' ...
0
votes
1
answer
38
views
apiKey returning undefined using browserify & dotenv
Hoping someone might be able to help me to resolve the below.
I am trying to utilise .env to store my API key. I have tried several methods but have been unable to return/ use my API key as of yet.
So ...
0
votes
1
answer
85
views
Call Kerberos node library from a React application
I am using NodeJS v18.18.0 to build a client React application that authenticates users via Kerberos. I intend to use node library kerberos (https://www.npmjs.com/package/kerberos). This package is a ...
0
votes
0
answers
186
views
How do I use browserify to convert node to the browser? nothing works for me?
Hi.
I have this code:
import request from 'request';
import fs from 'fs'
const url = 'https://transfermarkt-api.vercel.app/players/28003/profile';
const headers = {
'accept': 'application/json'
};
...
0
votes
0
answers
74
views
Trying to bundle a package using browserify and it's creating an empty file
I am trying to bundle a package using browserify so that I can use the require function on a browser.
I install browserify globally, and for my code used terminal command
browserify stocksite.js > ...
0
votes
0
answers
31
views
use jquery in global javascript function with browserify
I am trying to create a bundle file that will work like an embed script. I need jquery in it and I am trying it like this. I can use jQuery but I need to use a document. ready function. I was trying ...
0
votes
1
answer
44
views
Browserify bundle not playing nice with Array.forEach() or HTML written event listeners
I'm working on a website that helps poets write poems. So, I decided to use Browserify to pull in libraries (rhyme-plus-plus and dom-ready only right now, and the errors have nothing to do with the ...