react-native-fusioncharts icon indicating copy to clipboard operation
react-native-fusioncharts copied to clipboard

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

Open aithashi opened this issue 3 years ago • 10 comments

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!

aithashi avatar Jul 13 '21 13:07 aithashi

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.

celio-thingsphere avatar Aug 04 '21 13:08 celio-thingsphere

I am Facing same issue

Any help would be appreciated!

deepakmehra96 avatar Nov 25 '21 13:11 deepakmehra96

@celio-thingsphere It didn't worked

deepakmehra96 avatar Nov 25 '21 13:11 deepakmehra96

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

AyanBhadury avatar Nov 25 '21 13:11 AyanBhadury

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.

me-srj avatar Jan 27 '22 06:01 me-srj

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

bhargaviRdy avatar Feb 01 '22 06:02 bhargaviRdy

@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

aithashi avatar Feb 02 '22 11:02 aithashi

@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.

me-srj avatar Feb 02 '22 13:02 me-srj

@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)

aithashi avatar Feb 02 '22 14:02 aithashi

@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.

me-srj avatar Feb 03 '22 05:02 me-srj