-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to write file #31
Comments
Well, I found the problem... const injectorScript = makeInjector(scriptName);
const injectorFilepath = path.join(buildPath, scriptName);
const injectorPath = Remove.file(injectorFilepath)
// problem goes here,injectorPath => ''???
mkdirp.sync(injectorPath)
// if I change to mkdirp.sync(path.dirname(injectorFilepath)) then it works.
fs.writeFileSync(injectorFilepath, injectorScript, {encoding: 'utf8'})
log.done() |
why not use import path from 'path';
...
export const file = path.dirname; and it works on my win10 laptop. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Env: Win10
Err Message:
how to solve this problem??
The text was updated successfully, but these errors were encountered: