datocms / gatsby-portfolio Goto Github PK
View Code? Open in Web Editor NEWSample DatoCMS website built with GatsbyJS
License: MIT License
Sample DatoCMS website built with GatsbyJS
License: MIT License
Hey guys,
This theme looks really similar to my Creative theme. Did you use it as a base? If so, let me know, thanks!
Cheers,
Ondrej, Bootstrapious
Hi, I started today using Gatsby + DatoCMS based on this boilerplate. When I tried to run yarn build
I got this error: gatsbyjs/gatsby#1659
Run yarn build
and ๐ฅ
crypto.js:74
this._handle.update(data, encoding);
^
TypeError: Data must be a string or a buffer
at Hash.update (crypto.js:74:16)
Just update gatsby
dependency to 1.9.164
or newer and the error is gone
I hope it helps someone
yarn install
,yarn develop
passed but with error in console:GraphQL Error Unknown field `resize` on type `[DatoCmsAsset]`
file: C:/Dev/datocms-gatsby/src/templates/work.js
1 |
2 | query WorkQuery($slug: String!) {
3 | datoCmsWork(slug: { eq: $slug }) {
4 | seoMetaTags {
5 | ...GatsbyDatoCmsSeoMetaTags
6 | }
7 | title
8 | excerpt
9 | gallery {
> 10 | resize(height: 200, imgixParams: { fm: "jpg", auto: "compress" }) {
| ^
11 | src
12 | }
13 | }
14 | descriptionNode {
15 | childMarkdownRemark {
16 | html
17 | }
18 | }
19 | coverImage {
20 | url
TypeError: Cannot read property 'datoCmsSite' of undefined
new TemplateWrapper
C:/Dev/datocms-gatsby/src/layouts/index.js:11
8 | const TemplateWrapper = ({ children, data }) => (
9 | <div className="container">
10 | <HelmetDatoCms
> 11 | favicon={data.datoCmsSite.faviconMetaTags}
12 | seo={data.datoCmsHome.seoMetaTags}
13 | />
14 | <div className="container__sidebar">
Running the GraphQL query from index.js in GraphiQL, I get:
{
"errors": [
{
"message": "Unknown fragment \"GatsbyDatoCmsFaviconMetaTags\".",
"locations": [
{
"line": 7,
"column": 12
}
]
},
{
"message": "Unknown fragment \"GatsbyDatoCmsSeoMetaTags\".",
"locations": [
{
"line": 12,
"column": 12
}
]
}
]
}
Please advise.
Sidebar is disappearing when "About" is clicked.
Fresh install: https://objective-aryabhata-031fcb.netlify.com/
vs.
Demo link from README.md: https://cranky-edison-12166d.netlify.com/
Doenst run on codesandbox.io or gitpod. I added my own .env key as well and matched the fields.
Howdy!
This starter uses dangerouslySetInnerHTML
. I could not find it while searching but is the data sanitized?
I'm sure this is an awesome project but not everybody has time to clone the repo, install dependencies and serve it locally.
Can you host a demo on something like GitHub Pages?
yarn develop
yields this:
error Cannot read property 'allDatoCmsWork' of undefined
TypeError: Cannot read property 'allDatoCmsWork' of undefined
- gatsby-node.js:19 graphql.then.result
/private/var/www/project/gatsby-node.js:19:19
- util.js:16 tryCatcher
[project]/[bluebird]/js/release/util.js:16:23
- promise.js:512 Promise._settlePromiseFromHandler
[project]/[bluebird]/js/release/promise.js:512:31
- promise.js:569 Promise._settlePromise
[project]/[bluebird]/js/release/promise.js:569:18
- promise.js:606 Promise._settlePromiseCtx
[project]/[bluebird]/js/release/promise.js:606:10
- async.js:138 Async._drainQueue
[project]/[bluebird]/js/release/async.js:138:12
- async.js:143 Async._drainQueues
[project]/[bluebird]/js/release/async.js:143:10
- async.js:17 Immediate.Async.drainQueues [as _onImmediate]
[project]/[bluebird]/js/release/async.js:17:14
error UNHANDLED REJECTION
TypeError: Cannot read property 'allDatoCmsWork' of undefined
- gatsby-node.js:19 graphql.then.result
/private/var/www/project/gatsby-node.js:19:19
- util.js:16 tryCatcher
[project]/[bluebird]/js/release/util.js:16:23
- promise.js:512 Promise._settlePromiseFromHandler
[project]/[bluebird]/js/release/promise.js:512:31
- promise.js:569 Promise._settlePromise
[project]/[bluebird]/js/release/promise.js:569:18
- promise.js:606 Promise._settlePromiseCtx
[project]/[bluebird]/js/release/promise.js:606:10
- async.js:138 Async._drainQueue
[project]/[bluebird]/js/release/async.js:138:12
- async.js:143 Async._drainQueues
[project]/[bluebird]/js/release/async.js:143:10
- async.js:17 Immediate.Async.drainQueues [as _onImmediate]
[project]/[bluebird]/js/release/async.js:17:14
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Also, needed to run a yarn upgrade
since some packages were out of date, but I was getting similar errors before.
Where can the sidebar-title and Homepage title be edited? I looked in the code and on the dato admin page and I have not found these yet. This is a cool project and I want to see how everything works :-).
Demo mobile menu does not open on click
Very small issue, but when I used this starter via Gatsby Cloud, the screenshot in the READme of my copy of the starter seems broken.
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.