Issue encountered while attempting to utilize Semantic elements

I'm currently working on implementing a Transition component from Semantic UI React. I have the Semantic UI library installed and importing it as follows:

import { 
  Transition,
 } from "semantic-ui-react";

import 'semantic-ui-css/semantic.min.css';

However, when attempting to use the Transition component in my code snippet below, I encountered a warning message:

Warning - [webpack] 'dist':
./node_modules/semantic-ui-react/dist/es/lib/shallowEqual.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* C:\...\Dev\truckDeliverySchedule\node_modules\source-map-loader\index.js!C:\...\Dev\truckDeliverySchedule\node_modules\semantic-ui-react\dist\es\lib\shallowEqual.js
    Used by 1 module(s), i. e.
    C:\...\Dev\truckDeliverySchedule\node_modules\source-map-loader\index.js!C:\...\Dev\truckDeliverySchedule\node_modules\semantic-ui-react\dist\es\lib\index.js
* C:\...\Dev\truckDeliverySchedule\node_modules\source-map-loader\index.js!C:\...\Dev\truckDeliverySchedule\node_modules\semantic-ui-react\dist\es\lib\shallowequal.js
    Used by 2 module(s), i. e.
    C:\...\Dev\truckDeliverySchedule\node_modules\source-map-loader\index.js!C:\...\Dev\truckDeliverySchedule\node_modules\semantic-ui-react\dist\es\lib\shallowEqual.js

In addition to Semantic UI React components, I am also importing several Office UI Fabric React components:

../
import { 
  Dialog,
  DialogType,
  DialogFooter,
} from 'office-ui-fabric-react/lib/dialog';
import { 
  MessageBar,
  MessageBarType,
} from 'office-ui-fabric-react/lib/messageBar';
../

The error seems unclear to me, and I'm unsure of how to address it.

EDIT:

├─ <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9deaf8ffedfcfef6b0f9f8ebb0f0f4f9f9f1f8eafceff8ddacb3acafb3af">[email protected]</a>
├─ <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="582f3d3a28393b33752b372d2a3b3d2b186976697668">[email protected]</a>
├─ <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="80f7e5e2f0e1e3ebadf3f4f2e5e1edc0b4aeb0aeb3">[email protected]</a>
├─ <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9cebf9feecfdfff7dcafb2adadb2ac">[email protected]</a>

...

├─ <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ea998f878b849e8389c79f83c7899999aad8c4d9c4d9">[email protected]</a>
├─ <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="acdfc9c1cdc2d8c5cf81d9c581dec9cdcfd8ec9c82949e829f">[email protected]</a>

...

├─ <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b7c5d2d6d4c39ad3d8daf7868299819985">[email protected]</a>
├─ <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3240575351467203071c041c00">[email protected]</a>

Answer №1

If you are currently using an outdated version of React, it is important to note that Semantic-UI-React had a breaking change at version 0.82.0 which requires an update to React 16 or higher. You have the option to either stick with Semantic-UI-React 0.81.0 or upgrade your React version to 16 or newer.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Using Jquery to monitor input field modifications following a background ajax refresh

I am facing a challenge with my two JQuery functions. The first function executes an ajax load based on the user's selection from a drop-down menu, and then updates an input field according to the data returned. This function is working correctly. // ...

Issues arise due to data inconsistency stemming from the combination of a for loop and .map() function within the BACK4APP

I seem to be facing a challenge with data consistency caused by the for (const object of results) {} loop in the Sandbox Link at line41. The issue is that the results are displayed as a single result after using the .map() method. However, when I perform a ...

Two separate buttons in two distinct views that trigger the same function in AngularJS

I am currently working on a Single Page Application (SPA) that has two distinct views - one for subjects and another for students. In the subject view, there is a save button located in app/views/subject/subject.html: <button type="button" class="b ...

What's the CSS equivalent of Java's window.pack() method?

I'm relatively new to css and I'm attempting to create a border around a <div>. My goal is for the border to be limited to the size of the elements inside the div and adjust dynamically in proportion to any new objects that may appear or di ...

ES6: Utilizing tagged templates for embedding nested HTML elements

Currently in the process of familiarizing myself with JavaScript and testing out its tagged template literals feature. <p> Handlebars? Tagged template literals? <span> That is a question. </span> </p> The above snippet showcases ...

Struggling with extracting an array of objects from a JSON file and accessing individual attributes within each object?

As a newcomer to Typescript, I am eager to work with JSON and access its objects and attributes. However, I am encountering difficulties in achieving this. I have attempted using functions like 'for of' and 'for in', but unfortunately, ...

Is it possible to utilize npm packages within a standard web page without any frameworks or libraries?

I am currently working on a basic website created using vanilla HTML, CSS, and JS files. My goal is to incorporate the import { moment } from "moment" syntax into my JS files. However, after adding npm to my project, installing moment with npm i ...

I want to show error messages using jquery only when the username or password is entered incorrectly. How can this be achieved?

document.getElementById("buttonClick").addEventListener("click", mouseOverClick); function mouseOverClick(){ document.getElementById("buttonClick").style.color = "blue"; } $("#buttonClick").hover(function() { $(this).css('cursor',&apos ...

Troubleshooting: AngularJS fails to refresh UI when using SignalR

When I attempt to incorporate this angularjs code into a signalR function, the UI does not update. Even using $scope.$apply() does not trigger a digest. This is the code snippet: var notificationHub = $.connection.progressNotificationHub; notificationHub. ...

Having trouble setting up custom dimensions in Google Analytics 4 (GA4) from a React application?

Having configured a custom dimension in GA4 named company_name with user-level scope, I am encountering an issue while attempting to include the company name as an event parameter for custom event tracking on the React side. In my implementation, despite ...

Struggling to make a JavaScript program that sums up odd numbers

Let's tackle this challenge: Your task is to create a program that adds up all the odd numbers between 1 and the number provided by the user. For instance, if the user inputs 7, the program should calculate 1 + 3 + 5 + 7. The result of this calculati ...

Blending MapLibre GL JS with ThreeLoader3dTiles

After much trial and error, I have successfully implemented a code snippet that displays a Cesium 3D tiles model. This code effectively sets up a basic scene, loads the Cesium model, and integrates it into the scene. import { useEffect, useRef, useState } ...

What is the best approach to dynamically update CSS using onChange in TypeScript?

I am facing an issue with 2 input fields on my website. I want to create a functionality where if a user enters data into one field, the CSS of the other field changes dynamically. For instance, I would like to change the class "changeAmount" to "display:n ...

Setting Default Value in Dropdown List with Angular Reactive Forms

Having trouble setting the default option in a select element. I receive an array from the server and want to automatically select the second item in the array (documentTypes[1]). Below is my code snippet along with what I have attempted so far. Select HT ...

Managing objects over time in Three.js

I am looking to dynamically add and remove objects in a continuous stream. Imagine having an array of 50 objects, and I want to cycle through them with a period, essentially creating an object stream. I initially attempted using setTimeout and setInterval ...

How much time can pass between two clicks in order to activate a double-click event?

How long is the maximum delay between two clicks that will still activate a double-click event? Does this delay vary between plain JavaScript, jQuery, and AngularJS? Additionally, in jQuery, what time intervals do the fast and slow keywords represent? For ...

AngularJS Login Popup with SpringSecurity

I have successfully integrated spring security with my AngularJS webpage utilizing Rest API. However, I am facing an issue where every time I attempt to log in using the rest api from my customized login page, it prompts me for the login credentials in a p ...

bringing a variable from a TypeScript file into a different one

I'm facing a challenge with importing a variable from one TypeScript file to another. The specific variable I need to import is called cityListUrl The TypeScript file where it's defined looks like this: export class backendUrls{ // root url ...

How come the font size and div elements combine when I drag and drop the items?

Recently, I decided to create my own drag and drop game. The game is almost complete, but there's one issue. When I try to drop the items into the designated "Drop Items Here" area, their style changes abruptly to mimic the text. For example: https: ...

React Traffic Light Component: Colors Stuck After Timeout

I've been working on solving a React issue and followed a tutorial on YouTube. I'm using CodeSandbox for my project, but I'm facing a problem where the colors of the signal are not showing up and do not change after some time. I even tried u ...