Open prblackburn opened 5 years ago
Hi, I received the same error... have you found a fix?
Also, since the generator command uses ctr-alt-l this package conflicts with atom-live-server
Is there a way to change the key commands so there is no conflict?
I went thru the code where the issue is, and what I understand from the code is that, it doesn't handle if Atom doesn't have a selected folder. And because there is no folder selected folder, path
is undefined, and code is trying to operate string operations on an undefined object.
Shift + Command + O
before generating a template Control + Alt/Option + K
const filePath = path.join(atom.project.getPaths()[0], 'index.html')
check
if (path === undefined)
and handle it accordingly
Steps to reproduce:
Atom: 1.40.1 x64 Electron: 3.1.10 OS: Mac OS X 10.14.6 Thrown From: html-template-generator package 0.3.0
Stack Trace
Uncaught The "path" argument must be of type string. Received type undefined
Commands
Non-Core Packages