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

Module not found: Can't resolve '../../charting_library/charting_library.min' #198

Closed
OnePieceLiu opened this issue Nov 25, 2020 · 9 comments

Comments

@OnePieceLiu
Copy link

./src/components/TVChartContainer/index.tsx
Module not found: Can't resolve '../../charting_library/charting_library.min' in 'C:\Users\lz\Desktop\charting-library-examples-master\react-typescript\src\components\TVChartContainer'

@timocov
Copy link
Contributor

timocov commented Nov 27, 2020

What version of the library you use?

@timocov timocov changed the title ./src/components/TVChartContainer/index.tsx Module not found: Can't resolve '../../charting_library/charting_library.min' in 'C:\Users\lz\Desktop\charting-library-examples-master\react-typescript\src\components\TVChartContainer' Module not found: Can't resolve '../../charting_library/charting_library.min' Nov 27, 2020
@sschiessl-bcp
Copy link

sschiessl-bcp commented Dec 10, 2020

Hello there,

I am running in the same problem using the react-javascript example. I use the latest charting_library (commit hash 02b61a1). It does not contain a min version, and I tried without min as well.

To get one step further you can put the charting_library e.g. in src/lib/ and then change the import to

import { widget } from '../../lib/charting_library/charting_library.min';

Then you run into this error
image

Are the examples compatible with latest library?

@sschiessl-bcp
Copy link

sschiessl-bcp commented Dec 10, 2020

I added #36 (comment) to the library js, now I see this error
image

Any fixes here I might have overlooked? Any help or pointers is appreciated @timocov

@ikh00000
Copy link

just try this import:
import { widget } from './charting_library/charting_library';

and also add /* eslint-disable */ at the top of this file to the file from './charting_library/charting_library';

For me it works!

@sschiessl-bcp
Copy link

sschiessl-bcp commented Dec 10, 2020

just try this import:
import { widget } from './charting_library/charting_library';

and also add /* eslint-disable */ at the top of this file to the file from './charting_library/charting_library';

For me it works!

Thanks for commenting! Which commit hash did you use for the charting_library, and are you running an otherwise unchanged copy of the react-javascript example? I did what you suggested, but it does not work for me and I am running into the error widgetReady (see above) ...

@aminkhorrami
Copy link

same problem here !

@option-i
Copy link

option-i commented Feb 1, 2021

I had same problem. the react-javascript is out of date. I did this and it worked.
image

@timocov
Copy link
Contributor

timocov commented Feb 2, 2021

We're on the way to update all examples to use the latest version of charting_library, see #207.

@timocov
Copy link
Contributor

timocov commented Feb 2, 2021

Fixed in #207

@timocov timocov closed this as completed Feb 2, 2021
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