Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eleventastic errors on build #27

Open
djmtype opened this issue Nov 16, 2021 · 2 comments
Open

Eleventastic errors on build #27

djmtype opened this issue Nov 16, 2021 · 2 comments

Comments

@djmtype
Copy link

djmtype commented Nov 16, 2021

@maxboeck I have no issues when running in dev, but on build I get the error below. Mind you, all I did was clone this repo and didn't touch any files.

I am running an M1 Mac with Node 15.x.

❯ npm run build

> [email protected] build
> run-s clean eleventy:prod --print-label

[clean        ] 
[clean        ] > [email protected] clean
[clean        ] > del-cli dist
[clean        ] 
[eleventy:prod] 
[eleventy:prod] > [email protected] eleventy:prod
[eleventy:prod] > cross-env ELEVENTY_ENV=production eleventy
[eleventy:prod] 
[eleventy:prod] Writing dist/build.txt from ./src/build.njk.
[eleventy:prod] Writing dist/feed.xml from ./src/feed.njk.
[eleventy:prod] Writing dist/robots.txt from ./src/robots.njk.
[eleventy:prod] Writing dist/serviceworker.js from ./src/serviceworker.njk.
[eleventy:prod] Writing dist/sitemap.xml from ./src/sitemap.njk.
[eleventy:prod] Writing dist/assets/scripts/main.js from ./src/assets/scripts/__scripts.11ty.js.
[eleventy:prod] Writing dist/assets/styles/main.css from ./src/assets/styles/__styles.11ty.js.
[eleventy:prod] Writing dist/404/index.html from ./src/404.njk.
[eleventy:prod] Writing dist/about/index.html from ./src/pages/about.njk.
[eleventy:prod] Writing dist/offline/index.html from ./src/pages/offline.njk.
[eleventy:prod] Writing dist/posts/2020-04-12-sample-post/index.html from ./src/posts/2020-04-12-sample-post.md.
[eleventy:prod] Writing dist/index.html from ./src/index.njk.
[eleventy:prod] Unhandled rejection in promise ([object Promise]): (more in DEBUG output)
[eleventy:prod] > The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
[eleventy:prod] 
[eleventy:prod] `TypeError` was thrown:
[eleventy:prod]     TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
[eleventy:prod]         at writeFile (node:fs:1499:5)
[eleventy:prod]         at go$writeFile (/Volumes/Evo/Sites/eleventastic/node_modules/graceful-fs/graceful-fs.js:138:14)
[eleventy:prod]         at Object.writeFile (/Volumes/Evo/Sites/eleventastic/node_modules/graceful-fs/graceful-fs.js:135:12)
[eleventy:prod]         at /Volumes/Evo/Sites/eleventastic/node_modules/fs-extra/lib/output/index.js:18:27
[eleventy:prod]         at /Volumes/Evo/Sites/eleventastic/node_modules/universalify/index.js:23:46
@kuwts
Copy link

kuwts commented May 15, 2024

Did you end up finding a solution to this? Having the same issue

@djmtype
Copy link
Author

djmtype commented May 16, 2024

I haven't. It's been years since this theme has been updated, too. Another thing that really stands out is the node sass dependency which is deprecated and seems incompatible with Mac ARM chips based on my experience with other projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants