Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad paths after bundling with rollup following react 18 upgrade #752

Open
SensationSama opened this issue May 9, 2024 · 0 comments
Open

Comments

@SensationSama
Copy link

SensationSama commented May 9, 2024

Hey, so perhaps this is an issue with my rollup configuration but I thought this would be the best place to post. After upgrading to react 18, the resulting bundled file is looking for a /utils/ directory, which is part of the un-bundled react-draggable module. I'm not seeing a clear way to get the contents of utils to properly bundle as they naturally did in react 17.

Before the upgrade the resulting bundle index.js (react 17)

var _positionFns = positionFns;
var _shims = shims;
var _DraggableCore = _interopRequireDefault(DraggableCore);
var _log = _interopRequireDefault(log);

After the upgrade the resulting bundle index.js (react 18)

var _positionFns = require("./utils/positionFns");
var _shims = require("./utils/shims");
var _DraggableCore = _interopRequireDefault(require("./DraggableCore"));
var _log = _interopRequireDefault(require("./utils/log"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant