react-router-component-keycloak-example icon indicating copy to clipboard operation
react-router-component-keycloak-example copied to clipboard

Fail Import in App.js

Open Marteyo opened this issue 4 years ago • 3 comments

You have to change the import of line 3: import AuthrizedElement from '../components/AuthrizedElement'; to import AuthrizedElement from './components/AuthrizedElement';

Marteyo avatar Jun 21 '21 17:06 Marteyo

Hi @Maigtello

Did this app run for you??

kartik533 avatar Nov 11 '21 23:11 kartik533

Hi @Maigtello

Did this app run for you??

@kartik533 try with other code, this doesn't work without modifications

Marteyo avatar Nov 12 '21 09:11 Marteyo

Hello I'm install react-app-alias library in project after that create root jsconfig.json and write that basic code "compilerOptions": { "baseUrl": "./src" }

and call component import AuthrizedElement from 'components/AuthrizedElement';

Working on my pc.

mustafasavul avatar Nov 24 '22 14:11 mustafasavul