Skip to content

Migration from CRA - Uncaught ReferenceError: _Lock__WEBPACK_IMPORTED_MODULE_1__ is not defined #1633

Closed Answered by xc2
maxim-semikov asked this question in Q&A
Discussion options

You must be logged in to vote

it might be a treeshaking bug.

pls try out the new treeshaking implementation with

// rsbuild.config.ts
{
  tools: {
    rspack: {
      experiments: {
        rspackFuture: { newTreeshaking: true },
      },
    },
  },
}

or the workaround:

import {FocusLockUI} from "react-focus-lock";
console.log(FocusLockUI);

reference: https://discord.com/channels/977448667919286283/1209798834767667230

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@maxim-semikov
Comment options

@chenjiahan
Comment options

Answer selected by maxim-semikov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants