-
Notifications
You must be signed in to change notification settings - Fork 27
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
Problem with working on Unix #55
Comments
Hi, I think that your issue has nothing to do with react-sigma, but without a reproducible example and/or the full stack trace of the error I can't be sure. Which version are you using ? What I can tell you is :
|
I've found a mistake in package.json of react-sigma. This error is appearing, when you declaring in package.json
You should declare default as LAST ONE, thats what this error about:
And after this manipulation everything working fine |
Humm, by searching on the net on such an issue, I found similar cases. |
I released the v3.4.2 with the fix. Thanks. |
Yeah, now it works, thanks! |
Im developing graph-map web application on React using sigma.js and react-sigma modules. While i have been developing it on my windows 10 os, everything was fine, but when i put it on macOS or linux (even Docker container), i've got this type of error:
ERROR in ./src/components/sigma_render.tsx
Module not found: Error: Default condition should be last one
sigma_render.tsx - the only component, where i use react-sigma
Here is my code sigma_renderer code:
import { FC, useEffect, useState } from "react";
import Graph from "graphology";
import {SigmaContainer, SearchControl, ControlsContainer, ZoomControl, FullScreenControl, } from "@react-sigma/core";
import "@react-sigma/core/lib/react-sigma.min.css";
import Loader from "./Loader";
import {useTypeSelector} from "./hooks/useTypeSelector";
import {fetchNodes} from "./store/action-creators/node";
import {useActions, useCheckBox} from "./hooks/useActions";
import {fetchFilter} from "./store/action-creators/filter"
import Events from "./useRegisterEvents";
import {store} from "./store";
import Modal from "./Modal";
import { CheckBox } from "./CheckBox";
import {Auth} from "./Auth";
const DemoGraph: React.FC<{}> = () => {
const [content, setContent] = useState({
x: 0,
y: 0
})
};
export default DemoGraph;
I think, there is problem in package.json in react-sigma, there are some incorrect dependencies. Becouse when i use dockerfile:
FROM node:20
EXPOSE 4000
WORKDIR /frontend
COPY . .
RUN npm ci
CMD npm run start
with .dockerignore
node_modules
There is an error, but when i copy node_modules without .dockerignore everything is working
The text was updated successfully, but these errors were encountered: