Having trouble setting up digital products (+ small mistake in docs) #3341
Replies: 1 comment
-
Hi, Thanks for the report. I'll get that typo fixed, and the second error is because you need to create a migration after defining the custom field. I'll also add a note on that. It is covered in-depth in the dedicated Custom Fields docs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!☺️
After having checked out Vendure over a year ago for the first time, it's finally time to develop the first client shop using Vendure 🎉
Said Client is exclusively selling digital products, so I went straight to the docs.
I downloaded the example plugin as described, and added it to
src/plugins
.After adding the plugin to my
src/vendure-config.ts
I tried to restart Vendure - But without success.I was getting the following error:
However, this was pretty easy to solve.
The docs say to create a file called
digital-products-plugin.ts
. However, in the provided GitHub Repository, the file is calleddigital-products.plugin.ts
.That's why Vendure couldn't find the file when trying to
import
it insrc/vendure-config.ts
.So I just renamed the file and that did the trick.
HOWEVER now I'm facing another issue ...
Upon starting Vendure via
npm run dev
, I receive the following error:After that, there's also a lot of SQL Syntax for creating tables and such.
So, I get that the problem is that my DB doesn't know the fields we try to access within the plugin.
However, I can't find anything regarding that topic in the docs.
The question is: What else do I have to do to make this work? What did I miss?
I'm sorry if I was just too blind to see it ...
Thanks in advance everyone!
Beta Was this translation helpful? Give feedback.
All reactions