Attempting to utilize Typescript typings for the Youtube Data API found at: https://github.com/Bolisov/typings-gapi/tree/master/gapi.client.youtube-v3
Within the Ionic framework, an error is encountered after running 'Ionic Serve' with the following line of code:
gapi.client.load("client", "v3");
Module parse failed: /Users/yoko/Desktop/myApp/node_modules/gapi/lib/gapi.coffee Unexpected token (1:17)
You may need an appropriate loader to handle this file type.
| config = require './config'
|
| module.exports =
This snippet shows the contents of api.coffee file:
config = require './config'
module.exports =
server:
setApiKey: (apiKey) ->
config.api.key = apiKey
load: (apiName, apiVersion, callback) ->
@[apiName] = require "./#{apiName}/#{apiVersion}"
callback()
What could be the interpretation behind this?