Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Displaying this error when Provider is included -- ✘ [ERROR] Could not resolve "tslib" #51

Open
shelcia opened this issue Nov 9, 2023 · 1 comment

Comments

@shelcia
Copy link

shelcia commented Nov 9, 2023


✘ [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: []
}
@shelcia shelcia changed the title ✘ [ERROR] Could not resolve "tslib" Displaying this error when Provider is included -- ✘ [ERROR] Could not resolve "tslib" Nov 9, 2023
@viktoriabakun
Copy link

same

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants