W01fw00d / chemistry-ui

User Interface Components Library, based on Material-UI. It uses Storybook to generate a catalog.
https://chemistry-ui.netlify.app/?path=/story/*
1 stars 0 forks source link

Fix eslint issue in: src\components\templates\index.js #53

Closed W01fw00d closed 2 years ago

W01fw00d commented 2 years ago

This rule is disabled for this file: https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/extensions.md

Because if we remove the .jsx extension, webpack fails when building project

W01fw00d commented 2 years ago

Error:

ERROR in ./src/components/templates/index.js
Module not found: Error: Can't resolve './_recipe_/about' in 'C:\projects\chemistry-ui\src\components\templates'
 @ ./src/components/templates/index.js 5:0-66 5:0-66
 @ ./src/index.js