-
Notifications
You must be signed in to change notification settings - Fork 380
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
HoverReactionBarControl.js / @fluentui/react-positioning/lib/usePositioning - Module parse failed: Unexpected token #1727
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
Thank you for submitting your first issue to this project. |
The problem no longer exists with version @pnp/[email protected] |
@MarkusLanger I experienced the same as you. I fiddled a lot and didn't quite know where to start, but i realized that when i import from top e.g. |
@trillian74 Thanks a lot for your information. It works for me too. |
Seems to be occuring for me as well, on Windows, ubuntu, Node, 14.17.3 and node 16.8.1 |
Issue occurs for me only component I'm using from spfx-controls-react is the live persona |
Hello everyone, I tried to repro the issue, without success. I created a component library which contains both DateTimePicker and HoverReactionsBar controls in a single component. I then created an SPFx extension which includes a dependency to the library component and includes the single component mentioned before. I could run the extension without issue. Environment info:
Does anyone here can try with updated version of the controls? If needed, I can create sample solutions. Let me know. |
Category
[ ] Enhancement
[x] Bug
[ ] Question
Version
Please specify what version of the library you are using: [ 3.16.0]
Expected / Desired Behavior / Question
Use of the library in a library component without problems when building the extension solution.
Observed Behavior
An error appears when building the extension solution.
[11:28:37] Error - [webpack] 'dist':
./node_modules/@floating-ui/devtools/dist/index.js 34:166
Module parse failed: Unexpected token (34:166)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| var r;
| const o = e;
Steps to Reproduce
Node Version: 18.17.1
SPFx Version: 1.18.2
Create SPFx Library Component Solution
Install "@pnp/[email protected]"
Use the DateTImePicker Component
Create a NPM Package from the Library Component
Create SPFx Extension Solution
Install the NPM Package of the Library Component
Use the component from the Library which uses the DateTimePicker component
Build the extension solution => Error occurs
Thanks!
The text was updated successfully, but these errors were encountered: