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

Property 'species' does not exist on type 'SymbolConstructor' #78

Open
Vivek205 opened this issue Jan 17, 2019 · 5 comments
Open

Property 'species' does not exist on type 'SymbolConstructor' #78

Vivek205 opened this issue Jan 17, 2019 · 5 comments

Comments

@Vivek205
Copy link

Vivek205 commented Jan 17, 2019

Describe the bug
The trading view chart is not compatible with [email protected]
Err occured while trying to run the reactjs-javascript example

To Reproduce

react-javascript example

  1. npm run eject
  2. remove ModuleScopePlugin from webpack config
  3. npm install @types/jquery -D
  4. npm start

Expected behavior

To integrate the cchart and make it work

Screenshots

If applicable, add screenshots to help explain your problem.
image

Additional context

I exxamined the source code. the symbolConstructor is missing species
image

@timocov
Copy link
Contributor

timocov commented Jan 18, 2019

Err occured while trying to run the reactjs-javascript example

How TypeScript's code related to javascript example? It looks like problem of configuring your project. But you can try to fix your tsconfig file (add es2015.symbol.wellknown lib).

@Vivek205
Copy link
Author

How TypeScript's code related to javascript example?
Long Story Short:
The error started occuring when I updated the react-scripts to the latest 2.x.x version.
It lead to too many errors. I tried a lot of fixes including es2015.symbol.wellknown . Still same error persists.

Now I started with a fresh clone.

  1. Moved the charting_library folder inside src.
  2. I got the err
./src/charting_library/charting_library.min.js
  Line 1:  'define' is not defined  no-undef
  Line 1:  'define' is not defined  no-undef

I followed the steps in #36 and inserted /* eslint-disable */ on the top of file charting_library.min.d . But still I'm getting the same issue.
image

PS: If you could update the examples with new create-react-app it will be usefull. I feel that, there are some breaking changes in react-scripts leading to incompatibility

@timocov
Copy link
Contributor

timocov commented Jan 18, 2019

on the top of file charting_library.min.d .

But the errors are in charting_library.min.js (js, not d.ts).

@Vivek205
Copy link
Author

on the top of file charting_library.min.d .

But the errors are in charting_library.min.js (js, not d.ts).

Yeah previously it was with d.ts. But now I started with fresh clone. Executed the steps as in the previous comment.

@timocov
Copy link
Contributor

timocov commented Jan 24, 2019

I followed the steps in #36 and inserted /* eslint-disable */ on the top of file charting_library.min.d .

You need to insert /* eslint-disable */ is js file.

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

2 participants