You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
D3 library has to be imported using: import * as d3Fetch from 'd3-fetch'
Error:
export 'default' (imported as 'd3Fetch') was not found in 'd3-fetch' (possible exports: blob, buffer, csv, dsv, html, image, json, svg, text, tsv, xml)
what is needed to convert to import d3Fetch from 'd3-fetch'
The text was updated successfully, but these errors were encountered:
Two options in tsconfig.json deal with default imports:
"allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
D3 library has to be imported using:
import * as d3Fetch from 'd3-fetch'
Error:
what is needed to convert to
import d3Fetch from 'd3-fetch'
The text was updated successfully, but these errors were encountered: