-
Notifications
You must be signed in to change notification settings - Fork 12
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
Eleventy:EleventyErrorHandler Problem writing Eleventy templates: +0ms #3
Comments
Hi Paul, could you also tell me if you created additional folders in |
I did not but can do so now, and try to build it again. |
So you just got the code from this repository, and tried building the site? Or did you change anything? |
I tried building at first and got the error. I used the template method and then a git clone. |
This might be more helpful than the debug info.
|
I still can't reproduce, but it helps more looking in the right direction, indeed, thanks. |
Did you use one of npm commands to build the site, or directly You should use (I have to document this):
|
I did use just eleventy. |
Here is the result of npm start bobs:pack11ty thor2$ clear
src/_assets/js/critical.js → _site/ui/js...
(!) The "this.resolveId" plugin context function used by plugin entrypoint-hashmanifest is deprecated. The "this.resolve" plugin context function should be used instead. src/_assets/js/additional.js → _site/ui/js... src/_assets/js/additional.js → _site/ui/js...
Watching "src/_assets//*.js" ..
npm ERR! A complete log of this run can be found in: Here is the debug.log it mentions bobs:pack11ty thor2$ cat /Users/thor2/.npm/_logs/2020-04-15T10_24_18_791Z-debug.log |
This includes a simple addition to the news section. What is strange is it does output to _site like it should. I see each news post has a folder and the appropriate index.html in the folder. Running npm start results in the same thing. Since no one else has this issue, I propose closing it and I will just try different things on my own. I thought it might be a quick fix and I don't want to waste your resources working on something that only affects me. |
Found this with a Google search. Ok, I'm going to close this. You know how things work, in a few days I'll try another build and it will work. |
@theapplegates thanks for your report. Unfortunately, I still don't understand where the issue comes from. If you still have the issue when you try again, can you run the build in debug mode? You'll have to run Thanks! |
Here are the logs. I saved them as github gists. Log1 mentioned Log2 Log3 |
Oops, it seems I copied these as a .js. Just leave the .js off each. Sorry I'm not good at this. |
@theapplegates sorry, it looks like I was not clear. I don't need npm's logs, but Eleventy ones. Can you run this command? npm run debug:build And give me the full log from your terminal? Thanks |
This gist has that. I cleared the terminal and ran that command and copied the whole screen. The gist shows the output. Is that not correct? |
Thanks a lot, I have been able to get the same error! Now I have to find how to fix it. |
That's great. I'm not losing my mind. |
Well, there are not many users yet… 😁 |
@theapplegates are you running macOS Catalina? I might have found where the issue comes from. There is a recurring issue with Could you check this "acid test"? https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md#the-acid-test |
Oh, I've spent hours trying to pass that test with other installs. Gatsby was troublesome. SK-CSE commented on Nov 9, 2019 sudo rm -rf $(xcode-select -print-path) Now node-gyp is not a problem, until now at least. It's worth pointing out I went to digitalcoean and created two systems, 1 ubuntu 18 nd 1 Debian 10 and each got the same error, and they were not Macs of course. |
It looks part of the solution if you can't pass the tests are some commands I listed above. sudo rm -rf $(xcode-select -print-path) # Enter root password. No output is normal. Do you want me to try that again? Just let me know and I can try and uninstall and reinstall Xcode Tools and reinstall node-gyp |
If you can try again just to be sure, it would help. It fixed the issue on my side. |
Nice. Give me 15-20 or however long it takes. I'll do it now. |
Now I'm confused, It did not work. bobs:~ thor2$ sudo rm -rf $(xcode-select -print-path) I wonder if I should delete everything developer related. Delete and re-install nodejs completely and re-install. |
I am doing it again. Just to make sure I did it right. |
Still does not work. and then I am going to install the full Xcode program not just the command line tools and trying to install node-gyp again. |
No luck. Installed Xcode, re-installed node-gyp and got the same error. Unfortunately I have to go. I can work on it again tonight. |
Fixed it. |
You don't have to be sorry, this should not happen even with Homebrew, and I've struggled multiple time with Well, I'm happy you'll be able to work with Pack11ty, looking forward to see what you can do with it! 👍 |
I get an error when I try to run your template. I am not a developer but I managed to find a Debug command in the package.json.
Here is the error section:
Eleventy:EleventyErrorHandler Problem writing Eleventy templates: +0ms
Eleventy:EleventyErrorHandler data.page.inputPath.match is not a function
Eleventy:EleventyErrorHandler
Eleventy:EleventyErrorHandler
TypeError
was thrown: +1msEleventy:EleventyErrorHandler (error stack): TypeError: data.page.inputPath.match is not a function
Eleventy:EleventyErrorHandler at type (/Users/thor2/Documents/test2-pack11ty/src/src.11tydata.js:6:37)
Eleventy:EleventyErrorHandler at layout (/Users/thor2/Documents/test2-pack11ty/src/src.11tydata.js:21:23)
Eleventy:EleventyErrorHandler at ComputedDataProxy.findVarsUsed (/Users/thor2/Documents/test2-pack11ty/node_modules/@11ty/eleventy/src/ComputedDataProxy.js:53:11)
Eleventy:EleventyErrorHandler at ComputedData.getVarOrder (/Users/thor2/Documents/test2-pack11ty/node_modules/@11ty/eleventy/src/ComputedData.js:55:34)
Eleventy:EleventyErrorHandler at processTicksAndRejections (internal/process/task_queues.js:97:5)
Eleventy:EleventyErrorHandler at async ComputedData.setupData (/Users/thor2/Documents/test2-pack11ty/node_modules/@11ty/eleventy/src/ComputedData.js:73:17)
Eleventy:EleventyErrorHandler at async Template.augmentFinalData (/Users/thor2/Documents/test2-pack11ty/node_modules/@11ty/eleventy/src/Template.js:422:5)
Eleventy:EleventyErrorHandler at async Template.getTemplates (/Users/thor2/Documents/test2-pack11ty/node_modules/@11ty/eleventy/src/Template.js:438:7)
Eleventy:EleventyErrorHandler at async TemplateMap.initDependencyMap (/Users/thor2/Documents/test2-pack11ty/node_modules/@11ty/eleventy/src/TemplateMap.js:246:22)
Eleventy:EleventyErrorHandler at async TemplateMap.cache (/Users/thor2/Documents/test2-pack11ty/node_modules/@11ty/eleventy/src/TemplateMap.js:279:5) +0ms
Does this mean anything to you?
Thanks for your help.
Paul
The text was updated successfully, but these errors were encountered: