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

Module not found: Can't resolve '@readerfront/ui' #1147

Open
huynhtan1808 opened this issue Jul 22, 2022 · 1 comment
Open

Module not found: Can't resolve '@readerfront/ui' #1147

huynhtan1808 opened this issue Jul 22, 2022 · 1 comment

Comments

@huynhtan1808
Copy link

huynhtan1808 commented Jul 22, 2022

I have this error when trying to run locally:

Module not found: Can't resolve '@readerfront/ui'
  11 |   setLanguagesFilter
  12 | } from 'lib/state';
> 13 | import {
  14 |   Button,
  15 |   Container,
  16 |   Select,

Please help, thank you

@steve-waugh
Copy link

Add "baseUrl": "." line on packages/ui/tsconfig.json

{
"compilerOptions": {
"rootDir": "src",
"outDir": "build",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"noFallthroughCasesInSwitch": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"moduleResolution": "node",
"noUnusedLocals": true,
"noImplicitAny": false,
"noImplicitThis": false,
"resolveJsonModule": true,
"declaration": true,
"target": "es5",
"module": "esnext",
"jsx": "react",
"baseUrl": ".",
},
"include": [
"src//*"
],
"exclude": [
"node_modules",
"build",
"src/
/*.test.ts"
]
}

worked for me

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