Update to latest Node (22.14.0) and all dependencies, including 11ty (3.0.0)#51
Open
dtreskunov wants to merge 19 commits intomaxboeck:masterfrom
Open
Update to latest Node (22.14.0) and all dependencies, including 11ty (3.0.0)#51dtreskunov wants to merge 19 commits intomaxboeck:masterfrom
dtreskunov wants to merge 19 commits intomaxboeck:masterfrom
Conversation
added 19 commits
March 21, 2025 14:16
https://www.11ty.dev/docs/plugins/upgrade-help/ todo: fix scss deprecation warnings https://sass-lang.com/documentation/breaking-changes/import/
updating to v5 causes: ``` [11ty] 1. Error in your Eleventy config file '.eleventy.js'. (via EleventyConfigError) [11ty] 2. require() cannot be used on an ESM graph with top-level await. Use import() instead. To see where the top-level await comes from, use --experimental-print-required-tla. [11ty] [11ty] Original error stack trace: Error [ERR_REQUIRE_ASYNC_MODULE]: require() cannot be used on an ESM graph with top-level await. Use import() instead. To see where the top-level await comes from, use --experimental-print-required-tla. [11ty] at ModuleJobSync.runSync (node:internal/modules/esm/module_job:392:13) [11ty] at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:360:47) [11ty] at loadESMFromCJS (node:internal/modules/cjs/loader:1385:24) [11ty] at Module._compile (node:internal/modules/cjs/loader:1536:5) [11ty] at Object..js (node:internal/modules/cjs/loader:1706:10) [11ty] at Module.load (node:internal/modules/cjs/loader:1289:32) [11ty] at Function._load (node:internal/modules/cjs/loader:1108:12) [11ty] at TracingChannel.traceSync (node:diagnostics_channel:322:14) [11ty] at wrapModuleLoad (node:internal/modules/cjs/loader:220:24) [11ty] at Module.require (node:internal/modules/cjs/loader:1311:12) ERROR: "eleventy:prod" exited with 1. ```
updating to v4 causes: ``` [11ty] Writing ./dist/site.webmanifest from ./src/site.webmanifest.njk [11ty] Writing ./dist/assets/scripts/main.js from ./src/assets/scripts/scripts.11ty.js [11ty] Writing ./dist/assets/styles/main.css from ./src/assets/styles/styles.11ty.js [11ty] Problem writing Eleventy templates: [11ty] 1. Having trouble writing to "./dist/index.html" from "./src/index.njk" (via EleventyTemplateError) [11ty] 2. mime.getType is not a function (via TypeError) [11ty] [11ty] Original error stack trace: TypeError: mime.getType is not a function [11ty] at Context.base64file (/Users/dtreskunov/github/maxboeck-resume/utils/filters.js:39:31) [11ty] at Context.<anonymous> (file:///Users/dtreskunov/github/maxboeck-resume/node_modules/@11ty/eleventy/src/UserConfig.js:419:24) [11ty] at Context.fn (file:///Users/dtreskunov/github/maxboeck-resume/node_modules/@11ty/eleventy/src/Benchmark/BenchmarkGroup.js:37:23) [11ty] at Context.<anonymous> (file:///Users/dtreskunov/github/maxboeck-resume/node_modules/@11ty/eleventy/src/Engines/Nunjucks.js:109:15) [11ty] at Template.root [as rootRenderFunc] (eval at _compile (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:527:18), <anonymous>:28:61) [11ty] at Template.render (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:454:10) [11ty] at eval (eval at _compile (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:527:18), <anonymous>:19:10) [11ty] at fn (/Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:26:24) [11ty] at /Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:66:22 [11ty] at executeSync (/Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:8:15) [11ty] at /Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:65:11 [11ty] at eval (eval at _compile (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:527:18), <anonymous>:15:1) [11ty] at createTemplate (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:254:9) [11ty] at handle (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:265:11) [11ty] at /Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:276:9 [11ty] at next (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/lib.js:258:7) [11ty] at Object.asyncIter (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/lib.js:263:3) [11ty] at Environment.getTemplate (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:259:9) [11ty] at eval (eval at _compile (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:527:18), <anonymous>:13:5) [11ty] at fn (/Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:26:24) [11ty] at /Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:66:22 [11ty] at executeSync (/Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:8:15) [11ty] at /Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:65:11 [11ty] at waterfall (/Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:71:38) [11ty] at Environment.waterfall (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:316:12) [11ty] at Template.root [as rootRenderFunc] (eval at _compile (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:527:18), <anonymous>:28:5) [11ty] at Template.render (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:454:10) [11ty] at eval (eval at _compile (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:527:18), <anonymous>:56:10) [11ty] at fn (/Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:26:24) [11ty] at /Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:66:22 [11ty] at executeSync (/Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:8:15) [11ty] at /Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:65:11 [11ty] at eval (eval at _compile (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:527:18), <anonymous>:52:1) [11ty] at createTemplate (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:254:9) [11ty] at handle (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:265:11) [11ty] at /Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:276:9 [11ty] at next (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/lib.js:258:7) [11ty] at Object.asyncIter (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/lib.js:263:3) [11ty] at Environment.getTemplate (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:259:9) [11ty] at eval (eval at _compile (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:527:18), <anonymous>:50:5) [11ty] at fn (/Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:26:24) [11ty] at /Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:66:22 [11ty] at executeSync (/Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:8:15) [11ty] at /Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:65:11 [11ty] at waterfall (/Users/dtreskunov/github/maxboeck-resume/node_modules/a-sync-waterfall/index.js:71:38) [11ty] at Environment.waterfall (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:316:12) [11ty] at eval (eval at _compile (/Users/dtreskunov/github/maxboeck-resume/node_modules/nunjucks/src/environment.js:527:18), <anonymous>:65:5) [11ty] at file:///Users/dtreskunov/github/maxboeck-resume/node_modules/@11ty/eleventy/src/Engines/Nunjucks.js:221:8 ```
migrate filteres.js from CommonJS to ES Modules
add type: module to package.json https://www.11ty.dev/docs/cjs-esm/
|
This update works really well! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.