Problems with upgrading to 2.xx
Unsolved
Technical Support
-
I upgraded from v1.19.x to
HEAD is now at 5836bf4a05 chore: incrementing version number - v2.5.7
When running ./nodebb build, I now get the following errors.
2022-11-07T10:19:07.381Z [4567/18992] - error: [build] Encountered error preparing for build TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.stat (node:internal/fs/promises:710:10) at processDir (/var/www/nodebb/src/plugins/data.js:110:36) at async Promise.all (index 0) at async Data.getStaticDirectories (/var/www/nodebb/src/plugins/data.js:128:2) 2022-11-07T10:19:07.382Z [4567/18992] - error: [build] Encountered error during build step TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.stat (node:internal/fs/promises:710:10) at processDir (/var/www/nodebb/src/plugins/data.js:110:36) at async Promise.all (index 0) at async Data.getStaticDirectories (/var/www/nodebb/src/plugins/data.js:128:2) 2022-11-07T10:19:07.382Z [4567/18992] - error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.stat (node:internal/fs/promises:710:10) at processDir (/var/www/nodebb/src/plugins/data.js:110:36) at async Promise.all (index 0) at async Data.getStaticDirectories (/var/www/nodebb/src/plugins/data.js:128:2) ``` error Any ideas?
-
@y-h what version of Node are you on?
-
v17.4.0
Active plugins: * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled)
-
@y-h please try Node 16 or 18
-
changed to V16.14.2, and reset the nodebb-plugin-lightgallery plugin
still nothingfull log is
2022-11-13T18:27:14.339Z [4567/3098] - verbose: [minifier] utilizing a maximum o f 7 additional threads 2022-11-13T18:27:14.846Z [4567/3098] - verbose: [build] Querying CPU core count for build strategy 2022-11-13T18:27:14.846Z [4567/3098] - verbose: [build] System returned 8 cores, opting for parallel build strategy 2022-11-13T18:27:14.847Z [4567/3098] - verbose: [build] building the following t argets: plugin static dirs, requirejs modules, client js bundle, admin js bundle , client side styles, admin control panel styles, templates, languages started 2022-11-13T18:27:15.052Z [4567/3098] - verbose: [plugins] loading the following fields from plugin data: staticDirs, modules, clientScripts, acpScripts, cssFile s, lessFiles, acpLessFiles, languageData 2022-11-13T18:27:15.068Z [4567/3098] - verbose: [plugins] Found 1 less file(s) f or plugin nodebb-plugin-composer-default 2022-11-13T18:27:15.070Z [4567/3098] - verbose: [plugins] Found 1 less file(s) f or plugin nodebb-plugin-markdown 2022-11-13T18:27:15.071Z [4567/3098] - verbose: [plugins] Found 1 css file(s) fo r plugin nodebb-widget-essentials 2022-11-13T18:27:15.071Z [4567/3098] - verbose: [plugins] Found 1 less file(s) f or plugin nodebb-plugin-contact-page 2022-11-13T18:27:15.073Z [4567/3098] - verbose: [plugins] Found 1 less file(s) f or plugin nodebb-plugin-desktop-notifications-v2mm 2022-11-13T18:27:15.073Z [4567/3098] - verbose: [plugins] Found 1 less file(s) f or plugin nodebb-plugin-newsletter 2022-11-13T18:27:15.073Z [4567/3098] - verbose: [plugins] Found 1 acpLess file(s ) for plugin nodebb-plugin-newsletter 2022-11-13T18:27:15.074Z [4567/3098] - verbose: [plugins] Found 1 acpLess file(s ) for plugin nodebb-plugin-customize 2022-11-13T18:27:15.074Z [4567/3098] - verbose: [plugins] Found 2 css file(s) fo r plugin nodebb-plugin-recent-cards 2022-11-13T18:27:15.075Z [4567/3098] - verbose: [plugins] Found 1 less file(s) f or plugin nodebb-plugin-recent-cards 2022-11-13T18:27:15.075Z [4567/3098] - verbose: [plugins] Found 1 css file(s) fo r plugin nodebb-plugin-lightgallery 2022-11-13T18:27:15.076Z [4567/3098] - verbose: [plugins] Found 1 less file(s) f or plugin nodebb-plugin-user-invitations 2022-11-13T18:27:15.077Z [4567/3098] - verbose: [plugins] Found 1 less file(s) f or plugin nodebb-plugin-question-and-answer 2022-11-13T18:27:15.077Z [4567/3098] - verbose: [plugins] Found 1 less file(s) f or plugin nodebb-plugin-emoji 2022-11-13T18:27:15.077Z [4567/3098] - verbose: [plugins] Found 1 acpLess file(s ) for plugin nodebb-plugin-emoji 2022-11-13T18:27:15.078Z [4567/3098] - verbose: [plugins] Found 1 css file(s) fo r plugin nodebb-plugin-poll 2022-11-13T18:27:15.078Z [4567/3098] - verbose: [plugins] Found 1 less file(s) f or plugin nodebb-plugin-poll 2022-11-13T18:27:15.078Z [4567/3098] - verbose: [plugins] Found 1 less file(s) f or plugin nodebb-plugin-ns-embed 2022-11-13T18:27:15.084Z [4567/3098] - verbose: [plugins] Found 12 AMD-style mod ule(s) for plugin nodebb-plugin-composer-default 2022-11-13T18:27:15.085Z [4567/3098] - verbose: [plugins] Found 1 AMD-style modu le(s) for plugin nodebb-plugin-markdown 2022-11-13T18:27:15.085Z [4567/3098] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-markdown 2022-11-13T18:27:15.086Z [4567/3098] - verbose: [plugins] Found 3 AMD-style modu le(s) for plugin nodebb-theme-persona 2022-11-13T18:27:15.086Z [4567/3098] - verbose: [plugins] Found 1 AMD-style modu le(s) for plugin nodebb-plugin-mentions 2022-11-13T18:27:15.087Z [4567/3098] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-mentions 2022-11-13T18:27:15.088Z [4567/3098] - verbose: [plugins] Found 1 AMD-style modu le(s) for plugin nodebb-plugin-dbsearch 2022-11-13T18:27:15.088Z [4567/3098] - verbose: [plugins] Found 2 AMD-style modu le(s) for plugin nodebb-plugin-contact-page 2022-11-13T18:27:15.088Z [4567/3098] - verbose: [plugins] Found 1 AMD-style modu le(s) for plugin nodebb-plugin-google-analytics 2022-11-13T18:27:15.089Z [4567/3098] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-google-analytics 2022-11-13T18:27:15.089Z [4567/3098] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-gravatar 2022-11-13T18:27:15.089Z [4567/3098] - warn: [plugins] File not found: /var/www/ nodebb/node_modules/nodebb-plugin-newsletter/public/tinymce (Ignoring) 2022-11-13T18:27:15.091Z [4567/3098] - error: [build] Encountered error preparin g for build TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.stat (node:internal/fs/promises:658:10) at processDir (/var/www/nodebb/src/plugins/data.js:110:36) at async Promise.all (index 0) at async Data.getStaticDirectories (/var/www/nodebb/src/plugins/data.js:128: 2) 2022-11-13T18:27:15.091Z [4567/3098] - error: [build] Encountered error during b uild step TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.stat (node:internal/fs/promises:658:10) at processDir (/var/www/nodebb/src/plugins/data.js:110:36) at async Promise.all (index 0) at async Data.getStaticDirectories (/var/www/nodebb/src/plugins/data.js:128: 2) 2022-11-13T18:27:15.091Z [4567/3098] - error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Rece ived undefined at Object.stat (node:internal/fs/promises:658:10) at processDir (/var/www/nodebb/src/plugins/data.js:110:36) at async Promise.all (index 0) at async Data.getStaticDirectories (/var/www/nodebb/src/plugins/data.js:128: 2)
-
@y-h there's an alternative I'm using which isn't a plugin, but a simple block of code that night work better for you.
Have a look here
https://sudonix.com/topic/231/want-to-include-fancybox-in-nodebb-without-a-plugin
-
-
Didn't notice.
Here we go.
2022-11-13T22:19:13.706Z [4567/6355] - verbose: [minifier] utilizing a maximum of 7 additional threads 2022-11-13T22:19:14.628Z [4567/6355] - verbose: [build] Querying CPU core count for build strategy 2022-11-13T22:19:14.629Z [4567/6355] - verbose: [build] System returned 8 cores, opting for parallel build strategy 2022-11-13T22:19:14.630Z [4567/6355] - verbose: [build] building the following targets: plugin static dirs, requirejs modules, client js bundle, admin js bundle, client side styles, admin control panel styles, templates, languages started 2022-11-13T22:19:14.992Z [4567/6355] - verbose: [plugins] loading the following fields from plugin data: staticDirs, modules, clientScripts, acpScripts, cssFiles, lessFiles, acpLessFiles, languageData 2022-11-13T22:19:15.032Z [4567/6355] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-composer-default 2022-11-13T22:19:15.034Z [4567/6355] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-markdown 2022-11-13T22:19:15.035Z [4567/6355] - verbose: [plugins] Found 1 css file(s) for plugin nodebb-widget-essentials 2022-11-13T22:19:15.037Z [4567/6355] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-contact-page 2022-11-13T22:19:15.040Z [4567/6355] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-desktop-notifications-v2mm 2022-11-13T22:19:15.040Z [4567/6355] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-newsletter 2022-11-13T22:19:15.041Z [4567/6355] - verbose: [plugins] Found 1 acpLess file(s) for plugin nodebb-plugin-newsletter 2022-11-13T22:19:15.041Z [4567/6355] - verbose: [plugins] Found 1 acpLess file(s) for plugin nodebb-plugin-customize 2022-11-13T22:19:15.042Z [4567/6355] - verbose: [plugins] Found 2 css file(s) for plugin nodebb-plugin-recent-cards 2022-11-13T22:19:15.042Z [4567/6355] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-recent-cards 2022-11-13T22:19:15.044Z [4567/6355] - verbose: [plugins] Found 1 css file(s) for plugin nodebb-plugin-lightgallery 2022-11-13T22:19:15.045Z [4567/6355] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-user-invitations 2022-11-13T22:19:15.045Z [4567/6355] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-question-and-answer 2022-11-13T22:19:15.045Z [4567/6355] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-emoji 2022-11-13T22:19:15.046Z [4567/6355] - verbose: [plugins] Found 1 acpLess file(s) for plugin nodebb-plugin-emoji 2022-11-13T22:19:15.046Z [4567/6355] - verbose: [plugins] Found 1 css file(s) for plugin nodebb-plugin-poll 2022-11-13T22:19:15.047Z [4567/6355] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-poll 2022-11-13T22:19:15.047Z [4567/6355] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-ns-embed 2022-11-13T22:19:15.050Z [4567/6355] - verbose: [plugins] Found 12 AMD-style module(s) for plugin nodebb-plugin-composer-default 2022-11-13T22:19:15.051Z [4567/6355] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-markdown 2022-11-13T22:19:15.051Z [4567/6355] - verbose: [plugins] Found 1 AMD-style module(s) for plugin nodebb-plugin-markdown 2022-11-13T22:19:15.052Z [4567/6355] - verbose: [plugins] Found 3 AMD-style module(s) for plugin nodebb-theme-persona 2022-11-13T22:19:15.053Z [4567/6355] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-mentions 2022-11-13T22:19:15.054Z [4567/6355] - verbose: [plugins] Found 1 AMD-style module(s) for plugin nodebb-plugin-mentions 2022-11-13T22:19:15.056Z [4567/6355] - verbose: [plugins] Found 1 AMD-style module(s) for plugin nodebb-plugin-dbsearch 2022-11-13T22:19:15.057Z [4567/6355] - verbose: [plugins] Found 2 AMD-style module(s) for plugin nodebb-plugin-contact-page 2022-11-13T22:19:15.057Z [4567/6355] - verbose: [plugins] Found 1 AMD-style module(s) for plugin nodebb-plugin-google-analytics 2022-11-13T22:19:15.058Z [4567/6355] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-google-analytics 2022-11-13T22:19:15.058Z [4567/6355] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-gravatar 2022-11-13T22:19:15.058Z [4567/6355] - warn: [plugins] File not found: /var/www/nodebb/node_modules/nodebb-plugin-newsletter/public/tinymce (Ignoring) 2022-11-13T22:19:15.061Z [4567/6355] - error: [build] Encountered error preparing for build TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.stat (node:internal/fs/promises:658:10) at processDir (/var/www/nodebb/src/plugins/data.js:110:36) at async Promise.all (index 0) at async Data.getStaticDirectories (/var/www/nodebb/src/plugins/data.js:128:2) 2022-11-13T22:19:15.061Z [4567/6355] - error: [build] Encountered error during build step TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.stat (node:internal/fs/promises:658:10) at processDir (/var/www/nodebb/src/plugins/data.js:110:36) at async Promise.all (index 0) at async Data.getStaticDirectories (/var/www/nodebb/src/plugins/data.js:128:2) 2022-11-13T22:19:15.061Z [4567/6355] - error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.stat (node:internal/fs/promises:658:10) at processDir (/var/www/nodebb/src/plugins/data.js:110:36) at async Promise.all (index 0) at async Data.getStaticDirectories (/var/www/nodebb/src/plugins/data.js:128:2)
Copyright © 2024 NodeBB | Contributors