Browserify

How To Use Babel To Fix ParseError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’

When I run the command browserify ./js/test1.js -o build.js in the terminal to bundle some js files into one, it throws the error message like ParseError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’. This article will tell you how to fix it using babel to transcompile the js file source code to ES …

How To Use Babel To Fix ParseError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’ Read More »

How To Fix Error: Can’t walk dependency graph: Cannot find module from When Run Browserify

When I open a terminal and run the command browserify ./lib/test1.js -o build.js to bundle the file ./lib/test1.js and all it’s dependent js module files into the build.js file, I meet the error Can’t walk dependency graph: Cannot find module ‘core-js/modules/es.array.iterator.js’ from ‘. This article will tell you how to fix this error.