You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classCreateEmberL10nFastBootAssetMapextendsPlugin{constructor(inputNode){super([inputNode],{});}build(){// We only support passing in one input path (for simplicity)this.inputPath=this.inputPaths[0];this.parseNode(this.inputPath);this.createFastBootAssetMapModule();}parseNode(inputPath){letstat=this.input.statSync(inputPath);if(stat.isFile()){this.parseFile(inputPath);}elseif(stat.isDirectory()){this.parseDirectory(inputPath);}}parseDirectory(inputPath){letoutputPath=this._getOutputPath(inputPath);if(!this.output.existsSync(outputPath)){this.output.mkdirSync(outputPath);}letfiles=this.input.readdirSync(inputPath);files.forEach((file)=>this.parseNode(path.join(inputPath,file)));}parseFile(inputPath){letcontent=this.input.readFileSync(inputPath);letoutputPath=this._getOutputPath(inputPath);// logic goes here}_getOutputPath(inputPath){returnpath.relative(this.inputPath,inputPath);}}
However, it seems that let inputPath = this.inputPaths[0]; is an absolute path to a temp directory here, e.g.:
Which obviously does not exist. To be honest I am not quite sure where that comes from exactly, but somewhere there seems to be a missing handling for absolute paths, I guess?
The text was updated successfully, but these errors were encountered:
@rwjblue I had a look through the project history and it looks like there are not any updates for quite some time. Could you let us know, please if this project is still being continued? Thanks, appreciate it.
I am currently trying to debug this issue:
fossasia/open-event-frontend#7971
I have a plugin that looks basically like this:
However, it seems that
let inputPath = this.inputPaths[0];
is an absolute path to a temp directory here, e.g.:And
this.input.readdirSync
orthis.input.readFileSync
will convert that into e.g.Which obviously does not exist. To be honest I am not quite sure where that comes from exactly, but somewhere there seems to be a missing handling for absolute paths, I guess?
The text was updated successfully, but these errors were encountered: