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

Unable to resolve module ./modules/fusioncharts/fusioncharts.fcscript #127

Open
aithashi opened this issue Jul 13, 2021 · 10 comments
Open

Comments

@aithashi
Copy link

Facing this error and i'm currently unable to trace that file/folder.
Error says: Unable to resolve module ./modules/fusioncharts/fusioncharts.fcscript from S:\MydashboardApp\node_modules\react-native-fusioncharts\src\FusionChartsModule.js

Any help would be appreciated!

@celio-thingsphere
Copy link

celio-thingsphere commented Aug 4, 2021

Run the following commands in your project:
npm install -g react-native-cli

npm install react-native-webview

After that link this module to your app
react-native link react-native-webview

Execute your project.

@deepakmehra96
Copy link

I am Facing same issue

Any help would be appreciated!

@deepakmehra96
Copy link

@celio-thingsphere It didn't worked

@AyanBhadury
Copy link

@deepakmehra96 drop a mail to [email protected] with your license details.

@me-srj
Copy link

me-srj commented Jan 27, 2022

The react native is not able to read the .fcscript extension file....try to set your bable/metro to read that extenstion file like below.

const { getDefaultConfig } = require('@expo/metro-config');

const defaultConfig = getDefaultConfig(__dirname);

defaultConfig.resolver.assetExts.push('fcscript');

module.exports = defaultConfig;

Offcourse you need to install some dependencies and once done it will work.

@bhargaviRdy
Copy link

@srjkmrpro can you please help us with the dependencies that needs to be installed

@aithashi
Copy link
Author

aithashi commented Feb 2, 2022

@bhargaviRdy & @ALL
Follow only https://github.com/fusioncharts/react-native-fusioncharts#imporatant-note
Create a new project & follow step by step procedure as mentioned here.
Do not forget to make changes as mentioned in https://docs.expo.dev/bare/installing-unimodules/#installation

Following are the right versions (Which I'm using) to display the fusionCharts
"react": "17.0.1",
"react-native": "^0.64.2",
"react-native-fusioncharts": "^5.1.0",

IMPORTANT NOTE:
If you are following this following documentation, Do not follow (As recommended by the FusionCharts)
https://www.fusioncharts.com/dev/getting-started/react-native/your-first-chart-using-react-native

@me-srj
Copy link

me-srj commented Feb 2, 2022

@srjkmrpro can you please help us with the dependencies that needs to be installed

just follow the steps in Fusion Chart site
and try to do it with the latest dependencies such as nodeJS, npm and expo.
My friend was having the error in installing the dependencies so we switched to nodeJS version 14* and that helped.

@aithashi
Copy link
Author

aithashi commented Feb 2, 2022

@srjkmrpro
Are you sure the link which you shared is working for you? (That was the first link I tried & never worked for me!)
Because I was told by FusionChart support team not to use that since it's not the updated documentation.
and the link which I shared in my previous comment works absolutely fine. (FYI my node version is 14.13.1)

@me-srj
Copy link

me-srj commented Feb 3, 2022

@bhargaviRdy & @ALL Follow only https://github.com/fusioncharts/react-native-fusioncharts#imporatant-note Create a new project & follow step by step procedure as mentioned here. Do not forget to make changes as mentioned in https://docs.expo.dev/bare/installing-unimodules/#installation

Following are the right versions (Which I'm using) to display the fusionCharts "react": "17.0.1", "react-native": "^0.64.2", "react-native-fusioncharts": "^5.1.0",

IMPORTANT NOTE: If you are following this following documentation, Do not follow (As recommended by the FusionCharts) https://www.fusioncharts.com/dev/getting-started/react-native/your-first-chart-using-react-native

For me the old documentation link worked, there was an error "undefined is not an object (evaluating '_props$chartConfig.type')" but i solved it by removing chartConfig in the file node_modules/react-native-fusioncharts/index.js#L#14 and the chart was working.

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

6 participants