Closed Archish27 closed 3 months ago
Hey @tunetheweb,can you please help facing the above issue? Using Javascript with commonjs not using module.
There's some suggestions here which seem to work from a quick test: https://stackoverflow.com/questions/51023231/npm-browserify-import-and-export-may-appear-only-with-sourcetype-module.
Alternatively you can use } = require("web-vitals/dist/web-vitals.attribution.iife.js");
or } = require("web-vitals/dist/web-vitals.attribution.umd.cjs");
in your code.
But ultimately this is a browserify issue and not a web-vitals issue as far as I can tell so closing this.
Unable to build using
browserify
when usingGetting error while building browserify -