redwood: Following tutorial and getting "ReferenceError: AboutPage is not defined"
I am following the tutorial and have the required versions of node and yarn and get to this page but when I run yarn redwood generate page about I get “ReferenceError: AboutPage is not defined”. Any idea what I might be missing?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (7 by maintainers)
v0.8.2is released and fixes this problem, please upgrade by runningyarn rw upgradeOK thanks @thedavidprice recreating the app works now.
Hi All – thanks again for reporting this and sorry for the trouble. I can confirm the core team has replicated the error and we’re (still) working on it!
Current Fix: downgrade to v0.7.0
We have also downgraded the installation to v0.7.0. So if you start a new project via
yarn create ...you should be fine.What’s going on?
As we transition to support Typescript and Jest testing, we have been rewriting modules for Babel and Webpack (which is where a lot of the magic happens, ahem, when it works 😉). There’s currently an error introduced with the way auto-imports are handled that affects the Router.
@thedavidprice Confirmed. All 3 show
"@redwoodjs/*": "^0.7.0"*web, api, router… Thanks!