-
Notifications
You must be signed in to change notification settings - Fork 168
error in production mode #82
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
Comments
fixed, please upgrade the aleph cli and try again, thanks!
|
thanks. How to let the component exported by
but not work |
you may need the import { useRouter } from "https://deno.land/x/[email protected]/mod.ts"
// hypothetically current location patname is '/post/hello-world?theme=dark'
export default function Page() {
const {
pathname, // string, sholud be '/post/hello-world'
pagePath, // string, sholud be '/post/[slug]'
params, // object, sholud be {slug: 'hello-world'}
query // URLSearchParams, `query.get('theme')` sholud be 'dark'
} = useRouter()
...
} |
thanks ❤️ |
deno console:
browser console:

OS: macOS 11 Big Sur
the hello project can work when run
aleph dev
The text was updated successfully, but these errors were encountered: