Tutorial Issue - ReferenceError: withFaust is not defined #2073
-
I've attempted to install and run the tutorial 3-4 times, and continue to see the following error when I try to execute 'npm run dev': `> faust-tutorial@0.1.0 dev
/Users/xxxxxxxx/WebApps/faust-tutorial/next.config.js:6 ReferenceError: withFaust is not defined Node.js v22.14.0 |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 5 replies
-
I have the same problem. |
Beta Was this translation helpful? Give feedback.
-
Thanks @timthefoolman for raising this issue and also @Sergey-388 . We will have a look into this issue and get back to you. |
Beta Was this translation helpful? Give feedback.
-
Hey all, is this line in you |
Beta Was this translation helpful? Give feedback.
-
Just confirming I can replicate the issue I have added this as an issue to the docs repo so we can track and get a fix rolled out for this - wpengine/faustjs.org#316 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Yes, it works, thanks! PS E:\custom-toolbar> npm run dev
info - Faust.js v3.1.0 That is, the server does not start. And another question - where can I see more examples of working with faust.js? There is little information, it is very difficult to start. Here’s the same story with this project: https://github.com/wpengine/atlas-blueprint-portfolio/tree/main – no errors, but the server won’t start. 🚫 I'm a beginner in this, but I’ve been a WordPress developer since 2011. However, I really want to get Headless WP working with Faust.js! I’ve been trying to make it work for almost a year now. Can you please guide me on what I’m doing wrong? 🙏🙏🙏 Here's what's in the console: PS E:\atlas-blueprint-portfolio-main> npm run dev
PS E:\atlas-blueprint-portfolio-main> The server also does not start, I really want it. |
Beta Was this translation helpful? Give feedback.
-
@timthefoolman This is now fixed by #2087 Please feel re-open or create a new issue if there is any further issues. |
Beta Was this translation helpful? Give feedback.
-
Re-opening as after the branch is merged I am still having the same issue with Faust import missing cc @moonmeister @Fran-A-Dev @kellenmace |
Beta Was this translation helpful? Give feedback.
-
This is now resolved. The issue was a cache issue on GitHub's end when you use We updated the tutorial to use For reference - https://www.npmjs.com/package/degit |
Beta Was this translation helpful? Give feedback.
This is now resolved. The issue was a cache issue on GitHub's end when you use
create-next-app
it uses https://codeload.github.com/wpengine/faustjs/tar.gz/canary which is not up to date with the current tutorial.We updated the tutorial to use
npx degit
instead as this clones from the source - #2089For reference - https://www.npmjs.com/package/degit