We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello. I was want to try gts in my project. After 'npx gts init' when I try to start my project I getting an error:
error - ./pages/_app.tsx:6:0 Module not found: Can't resolve 'components/layout' import Layout from "components/layout";
Before gts everything was good. Anyone have any ideas?
App structure in my case:
App - components -- layout --- container.tsx --- index.tsx - lib -- [...] - node_modules -- [...] - pages -- _app.tsx -- error.tsx -- index.tsx - public -- [...]
Error:
Line 6 of _app.tsx:
import Layout from "components/layout";
File components/layout/index.tsx contains:
[...] const Layout: FC = ({ children }) => { return ( <ColorModeProvider> <LightMode> <Navbar /> <Container>{children}</Container> </LightMode> </ColorModeProvider> ); }; export default Layout; [...]
Adding baseUrl to tsconfig.json fix that problem:
"compilerOptions": { "baseUrl": ".", }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello. I was want to try gts in my project. After 'npx gts init' when I try to start my project I getting an error:
Before gts everything was good. Anyone have any ideas?
Edit
App structure in my case:
Error:
Line 6 of _app.tsx:
File components/layout/index.tsx contains:
Adding baseUrl to tsconfig.json fix that problem:
The text was updated successfully, but these errors were encountered: