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

Cannot use import statement outside a module #111

Closed
ivanafanasyeu opened this issue Jan 6, 2021 · 1 comment
Closed

Cannot use import statement outside a module #111

ivanafanasyeu opened this issue Jan 6, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ivanafanasyeu
Copy link

Screenshot 2021-01-06 at 13 30 06

Next.js
import { yupResolver } from '@hookform/resolvers/yup';

import AuthLayout from '../../../layouts/AuthLayout';
import { LoginInputs, LoginSchema } from './types';

const LoginPage: FC = (): JSX.Element => {
	const { register, handleSubmit } = useForm<LoginInputs>({
		resolver: yupResolver(LoginSchema),
	});
@jorisre
Copy link
Member

jorisre commented Jan 6, 2021

Thanks for reporting

Duplicate of #100

Problem solved in V2 currently in beta, more detail here: #71 (comment)

@jorisre jorisre closed this as completed Jan 6, 2021
@jorisre jorisre added the bug Something isn't working label Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants