You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: (0 , blitz__WEBPACK_IMPORTED_MODULE_1__.useParam) is not a function
at Post (webpack-internal:///./src/pages/posts/[pid].tsx:12:64)
at renderWithHooks (/data/image-data/caoliu/str/caoliu-frontend/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5658:16)
at renderIndeterminateComponent (/data/image-data/caoliu/str/caoliu-frontend/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5731:15)
at renderElement (/data/image-data/caoliu/str/caoliu-frontend/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5946:7)
It seems that the useParam function should be imported from @blitzjs/next. I found this solution in #3446. So maybe it's better to update the docs?
The text was updated successfully, but these errors were encountered:
I'm new to blitzjs. I tried the code example in the page File-Based Routing:
blitz dev
produce such error:It seems that the
useParam
function should be imported from@blitzjs/next
. I found this solution in #3446. So maybe it's better to update the docs?The text was updated successfully, but these errors were encountered: