We are working on an old meteor project that is being upgraded to 1.8 and we need to be able to change some of the old meteor packages to the npm versionvs (moment for example).
The problem we have struck is that we can't seem to work out which file in the whole tree we need to put the import statements because so far, wherever we put it, we get the following error in the web console.
SyntaxError: import declarations may only appear at top level of a module
We have tried pretty much all of the files in client including startup.js but can't crack it.
Where should these import declarations go?