前提・実現したいこと
ESM形式でgulpを使用したいのですが、上手く動きません。
もし詳しい方おりましたらご教授いただけますと幸いです。
何卒よろしくお願いいたします。
該当のソースコード
gulp.mjs
1import gulp from "gulp"; 2export function aaa() { 3 console.log("aaa"); 4}
PS C:\Users\adminPC\Documents\test\20220304_node-test3> npx gulp aaa [18:51:03] Using gulpfile ~\Documents\test\20220304_node-test3\gulpfile.mjs [18:51:03] Starting 'aaa'... aaa [18:51:03] The following tasks did not complete: aaa [18:51:03] Did you forget to signal async completion?
package.json
1 "name": "test_code", 2 "version": "1.0.0", 3 "description": "", 4 "main": "index.js", 5 "scripts": { 6 "test": "echo \"Error: no test specified\" && exit 1", 7 "gulp": "gulp" 8 }, 9 "author": "", 10 "license": "", 11 "devDependencies": { 12 "gulp": "^4.0.2" 13 }, 14 "volta": { 15 "node": "16.14.0", 16 "npm": "8.5.2" 17 }
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。