binx / beluga Goto Github PK
View Code? Open in Web Editor NEW๐ท๐ Build your own ecommerce site! https://belugajs.com
License: GNU General Public License v3.0
๐ท๐ Build your own ecommerce site! https://belugajs.com
License: GNU General Public License v3.0
build time error
./src/data/store.js
Module not found: Your application tried to access history, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.
Hi! Thank you for your amazing work!
I have just created the store. Whenever I go http://localhost:3000/config?tab=2, it says error 404.
My project is here: https://github.com/adelmuursepp/online_store
Thanks again!
Is there any reference to SEO? I might have overseen it.
Thank you
Hi! No matter what I change on my listing it always goes to this error page. The rest of the website works perfect, including making the list. It's just when I try to view the listing that this error comes up. Have you seen this before? Any idea what I can do to get it working?
Thank you for the help!!
I am running Windows Server 2019, node, yarn, and git are all successfully installed and I restarted after it was done installing. Here is that rest of the error page:
TypeError: product.details.map is not a function
ProductDetails
C:/beluga/src/components/product/ProductDetails.js:139
136 |
137 | { product.details &&
138 |
139 |
| ^ 140 | {product.details.map((detail,i) =>
141 |- {detail}
142 | )}
View compiled
โผ 23 stack frames were expanded.
renderWithHooks
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:14985
mountIndeterminateComponent
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:17811
beginWork
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:19049
HTMLUnknownElement.callCallback
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:3945
invokeGuardedCallbackDev
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:3994
invokeGuardedCallback
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:4056
beginWork$1
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:23964
performUnitOfWork
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:22776
workLoopSync
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:22707
renderRootSync
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:22670
performSyncWorkOnRoot
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:22293
(anonymous function)
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:11327
unstable_runWithPriority
C:/beluga/node_modules/scheduler/cjs/scheduler.development.js:646
runWithPriority$1
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:11276
flushSyncCallbackQueueImpl
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:11322
flushSyncCallbackQueue
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:11309
batchedUpdates$1
C:/beluga/node_modules/react-dom/cjs/react-dom.development.js:22387
notify
C:/beluga/node_modules/react-redux/es/utils/Subscription.js:19
Subscription.notifyNestedSubs
C:/beluga/node_modules/react-redux/es/utils/Subscription.js:90
Subscription.handleChangeWrapper
C:/beluga/node_modules/react-redux/es/utils/Subscription.js:95
dispatch
C:/beluga/node_modules/redux/es/redux.js:222
(anonymous function)
C:/beluga/node_modules/redux-thunk/es/index.js:11
(anonymous function)
C:/beluga/node_modules/connected-react-router/esm/middleware.js:22
โฒ 23 stack frames were expanded.
(anonymous function)
C:/beluga/src/App.js:50
47 | fetch('/user/')
48 | .then(res => res.json())
49 | .then(result => {
50 | dispatch({ type: "SET_ADMIN", isAdmin: result.isAdmin })
| ^ 51 | })
52 | }, []);
53 |
View compiled
After setting up store, I logged in as admin by visiting localhost:3000/login. As soon as I hit that route the server get stopped and throw this error
TypeError: Cannot read property 'data' of null
at F:\web-projects\beluga\server\admin.js:26:25
at Timeout._onTimeout (F:\web-projects\beluga\node_modules\stripe\lib\utils.js:216:33)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7)
Could not proxy request /user/ from localhost:3000 to http://localhost:5000/.
Could not proxy request /config.json from localhost:3000 to http://localhost:5000/.
When I run I am getting this error. I do run yarn start
& yarn server
I'm excited to use beluga but very discouraged as I'm not an advanced coder to solve this problem myself. Entering title allows the button to be clickable but on click, step two is not revealed. Also I assumed that beluga synced with my existing stripe product database, is this not true?
The admin.js file compares input to password in plain text. req.body.password === process.env.ADMIN_PW
This is a possible security issue, password should be stored as hash and /api/login should hash input server side. I'll fix this myself unless there is something I'm not aware of making my point irrelevant.
Hi,
After installation and config, adding a new product as well;
viewing a product is throwing an error as such:
TypeError: product.details.map is not a function
ProductDetails
src/components/product/ProductDetails.js:140
137 | </Right>
138 | { product.details &&
139 | <Details>
> 140 | <ul>
| ^ 141 | {product.details.map((detail,i) =>
142 | <li key={i}>{detail}</li>
143 | )}
to reproduce this error, create a product (eg slug with "asdf") and click on it on /shop,
then expect to redirect to the error page for that specific product.
eg. http://localhost:3000/product/asdf
node version: v14.0.0
Bests,
@
When adding a product without an image or a variation, you receive a
TypeError: Cannot read properties of undefined (reading 'charAt') error.
When trying to checkout an order, the console logs a CheckoutFlow.js:54 POST http://localhost:3000/order/create 500 error
In addition, a red message appears on the screen, saying
Sorry, an error has occurred. Please refresh the page and try again.
Lastly, when using the site, I would sometimes get CORS Missing Allow Origin errors
Hi, i like your project and I was testing and i was wondering if you could explain how to change the currency.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.