Include floating-ui as dependency isn't working?
See original GitHub issueI’m trying to include your script into a library and it won’t work.
I’m getting
Uncaught (in promise) ReferenceError: process is not defined
Here’s how my code looks like. This sandbox works fine, but not in my compiled ES6 code it doesn’t.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
Mistake in docs regarding Bootstrap's usage of floating-ui #1718
As a user, I am currently using bootstrap. I see this comment and I think "great, I can use floating-ui without bringing in...
Read more >Migrating from Popper 2 to Floating UI
First thing's first, uninstall @popperjs/core and install @floating-ui/dom . npm uninstall @popperjs/core npm install @floating-ui/dom. Positioning ...
Read more >why doesn't placement of floating-ui work? - Stack Overflow
I guess the computePosition method is not configured properly moreover I haven't found any example for vanilla js floating-ui til now. PS: I...
Read more >Floating Content - OutSystems 11 Documentation
If the UI widget doesn't display, it's because the dependency isn't added. This happens because the Remove unused references setting is enabled.
Read more >FloatingActionButton class - material library - Dart API
A floating action button is a circular icon button that hovers over content to promote a primary action in the application. Floating action...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s our Rollup setup to replace
__DEV__
, but you’d use a direct check forprocess.env.NODE_ENV
https://github.com/floating-ui/floating-ui/blob/648b5bd7e4b614c2a40d5f2e678363ec5225ab9a/packages/core/rollup.config.js#L60-L65
i.e.(ensuring you’re processing
node_modules
):What error is there?
Ah yeah because
@floating-ui/dom
’s minified version doesn’t point to/core
’s minified version. Would probably need an alias plugin in that case, but this is a better way to handle it anyway