byuitechops / build-file-structure

Reorganizes the file structure of a course during conversion.
0 stars 0 forks source link

Error | cannot read display_name of undefined #1

Closed danverde closed 6 years ago

danverde commented 6 years ago

Found on course with Brightspace OU 63194

cannot read property 'display_name' of undefined stack: TypeError: Cannot read property 'display_name' of undefined
    at Promise (c:\Users\danverde\Documents\CONVERSION\d2l-to-canvas-conversion-tool\node_modules\build-file-structure\main.js:148:67)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
danverde commented 6 years ago

It happens all the time actually

danverde commented 6 years ago

https://github.com/byuitechops/build-file-structure/blob/d623194fbaa2c2260ba42075da43511104f05f8e/main.js#L147

It's because we delete the file, then try to access it.

csammcgrath commented 6 years ago

Fixed in commit https://github.com/byuitechops/build-file-structure/commit/69f1255ddfe81fa327f4fcb5651a653206e80181

@danverde, can you please check this and make sure that it works? Thank you!

danverde commented 6 years ago

Looks good!