Displaying this error when Provider is included -- ✘ [ERROR] Could not resolve "tslib"
shelcia opened this issue · 1 comments
shelcia commented
✘ [ERROR] Could not resolve "tslib"
node_modules/react-locomotive-scroll/module/LocomotiveScroll.context.js:4:24:
4 │ const tslib_1 = require("tslib");
╵ ~~~~~~~
You can mark the path "tslib" as external to exclude it from the bundle, which will remove this
error. You can also surround this "require" call with a try/catch block to handle this failure at
run-time instead of bundle-time.
node_modules/esbuild/lib/main.js:1649
let error = new Error(`${text}${summary}`);
Error: Build failed with 1 error:
node_modules/react-locomotive-scroll/module/LocomotiveScroll.context.js:4:24: ERROR: Could not resolve "tslib"
errors: [
{
detail: undefined,
id: '',
location: {
column: 24,
file: 'node_modules/react-locomotive-scroll/module/LocomotiveScroll.context.js',
length: 7,
line: 4,
lineText: 'const tslib_1 = require("tslib");',
namespace: '',
suggestion: ''
},
notes: [
{
location: null,
text: 'You can mark the path "tslib" as external to exclude it from the bundle, which will remove this error. You can also surround this "require" call with a try/catch block to handle this failure at run-time instead of bundle-time.'
}
],
pluginName: '',
text: 'Could not resolve "tslib"'
}
],
warnings: []
}
viktoriabakun commented
same