前提・実現したいこと
npx gulp ejs をコンパイルすると index.htmlができない。エラーを解決したい。
発生している問題・エラーメッセージ
Message: TypeError: C:\Users\mac10\gulp-tutorial\src\html\index.ejs:17 15| <meta 16| name="description" >> 17| content="<%= config.default.description %>" 18| > 19| <meta 20| name="author" Cannot read property 'description' of undefined Details: domainEmitter: [object Object] domain: [object Object] domainThrown: false
該当のソースコード
<%
var pageTitle
%>
ここに問題に対して試したことを記載してください。
ここにより詳細な情報を記載してください。
{
"name": "pwd",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"author": "",
"license": "ISC",
"browserslist": [
"last 2 chrome versions",
"last 2 firefox versions",
"last 2 safari versions",
"last 2 chromeandroid versions",
"last 2 ios versions",
"ie 11"
],
"devDependencies": {
"autoprefixer": "^8.6.5",
"csswring": "^6.0.3",
"gulp": "^4.0.0",
"gulp-ejs": "^3.1.3",
"gulp-postcss": "^7.0.1",
"gulp-sass": "^4.0.1",
"postcss-flexbugs-fixes": "^3.3.1"
},
"dependencies": {
"D": "^1.0.0",
"csswring": "^6.0.3",
"gulp": "^4.0.0",
"gulp-sass": "^4.0.1"
},
"keywords": [],
"description": ""
}
あなたの回答
tips
プレビュー