Skip to content

Commit

Permalink
Merge pull request #15 from emerson-eps/fix-build-issue
Browse files Browse the repository at this point in the history
fix: Resolving json file import issue
  • Loading branch information
shruthirai authored Jan 10, 2022
2 parents b09cca3 + 90336e5 commit 06c9a83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion react-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ export { colorTableData, DiscreteColorLegend } from './component/Legend/Discrete
export { colorsArray, rgbValues, RGBToHex} from './component/Utils/continousLegend';
export { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
export { propertiesObj, templateArray } from './component/WelllayerTemplateTypes';
export const colorTables = require('./component/color-tables');
//export const colorTables = require('./component/color-tables');
import * as colorTables from './component/color-tables.json';
export default colorTables;
4 changes: 3 additions & 1 deletion react-app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true
"resolveJsonModule": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
},
"include": ["src"],
"exclude": ["node_modules"]
Expand Down

0 comments on commit 06c9a83

Please sign in to comment.