Picture of Phillip Miles
Missing files on an outsourced course, my problem or theirs?
by Phillip Miles - Monday, 28 November 2016, 5:46 AM
 

Hi, I'm wondering if someone here can help me.

I've been handed some source files for an Adapt Framework course that was developed by an external company and tasked with making a few changes to it. However whenever I try to build the course, I get hit with a fatal error stating... 

Running "javascript:compile" (javascript) task

Fatal error: Error: ENOENT: no such file or directory, open '/Users/milesp/Documents/Adapt Framework/hla_m01/src/templates.js'

In module tree:

    core/js/app

Templates.js is indeed missing from the file path, although I didn't think that a templates.js file should be at that location. I'm aware that a templates.js file is created after the course is built but didn't think it existed beforehand.

It's also worth noting that when I compare the core/js/app.js file to an app.js file from a newly created course I can see that there are some additions to the leading require[ ] block, 'templates' being one of them. Beyond that I have no idea what the missing file should be doing or what the additional files within the require block mean.

So I'm unsure where the mistake lies. Did the external company not provide all the source files or have I set up the development environment wrong? I'm a bit lost on this one, any help would be greatly appreciated. 

 

Picture of Oliver Foster
Re: Missing files on an outsourced course, my problem or theirs?
by Oliver Foster - Monday, 28 November 2016, 5:59 PM
 

Hi Phillip, I have changed the core build process around a fair bit in the last few months to increase compile performance. It may well be something I've messed up for you. If you could go to https://gitter.im/adaptlearning/adapt_framework you'll find me lurking there with @oliverfoster If you could send me a zip containing your course with everything but the build and node modules folder I can fix it for you. Just the SRC folder and the root files is all I should need. Apologies for the breakage. Ollie.

Picture of Phillip Miles
Re: Missing files on an outsourced course, my problem or theirs?
by Phillip Miles - Monday, 28 November 2016, 10:32 PM
 

That would be absolutely amazing! The way I understand it here, is that I'll likely be getting more Adapt related jobs coming in, so I'd love to get my head properly wrapped around the framework. Your help here would be phenomenal.

Due to the course belonging to a client and all that, would it be possible if I could send you the files privately rather than publicly somehow?

Aniket Dharia
Re: Missing files on an outsourced course, my problem or theirs?
by Aniket Dharia - Monday, 28 November 2016, 7:03 PM
 

Hi Phil - 

Did the outsourced company use the framework or the AT for development? If it is framework, please ask for the full src folder instead of build folder as delivery. That might solve your problem.

Thanks!

Regards,

Aniket

Picture of Phillip Miles
Re: Missing files on an outsourced course, my problem or theirs?
by Phillip Miles - Monday, 28 November 2016, 10:36 PM
 

That's actually a good point. I had just assumed they used the framework as the file structure of the src files was the same as what I'm used to seeing with the framework. But I have't actually played around with the authoring tools yet, so that assumption was pretty unguided. I'll look into that, thanks.