Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uppagesPath nor rootPath works #238
Comments
I'm having the same issue here. |
@gmaragao Were you able to resolve the issue? I've been running into the same errors as well. |
@hbkwong
My backend express/node application is in the same folder as the vue instance. I hope it helps :) |
Nice! Pretty similar pattern you'd follow for a hook into which you'd insert a React component. Thanks for the heads up @gmaragao ! |
Description of Issue
console.log(path.join(__dirname, "/views/"))
const vueOptions = {
pagesPath: path.join(__dirname, "/views/")
};
expressVue.use(app, vueOptions).then(() => {
//CODE
});
Stack Trace / Console Log
(node:19805) UnhandledPromiseRejectionWarning: TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.parse (path.js:1516:5)
at Renderer.getBundleFilePath (/root/megogo/node_modules/vue-pronto/lib/renderer/renderer-webpack.js:221:33)
at Renderer._loadBundleFilesToMemory (/root/megogo/node_modules/vue-pronto/lib/renderer/renderer-webpack.js:202:37)
at Renderer.Bootstrap (/root/megogo/node_modules/vue-pronto/lib/renderer/renderer-webpack.js:151:32)
at
at process._tickCallback (internal/process/next_tick.js:189:7)
(node:19805) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:19805) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Additional Comments
Logging the path outputs: /root/megogo/frontend/views/