aurelia-meteor icon indicating copy to clipboard operation
aurelia-meteor copied to clipboard

Error when adding aurelia-materialize-bridge plugin

Open madrus opened this issue 8 years ago • 0 comments

I have followed your tutorial and everything worked fine with "Hello world" version. Then I added aurelia-materialize-bridge from this tutorial. After that when running meteor command, I got this error in DevTools console:

aurelia-materialize-bridge:1 Uncaught SyntaxError: Unexpected token <
    at SystemJSLoader.__exec (http://localhost:3000/packages/ahmedshuhel_aurelia.js?hash=bd6f366dd6c78a1605a7dd6965abce3dae201fc3:2637:12)
    at load.metadata.execute (http://localhost:3000/packages/ahmedshuhel_aurelia.js?hash=bd6f366dd6c78a1605a7dd6965abce3dae201fc3:3873:16)
    at linkDynamicModule (http://localhost:3000/packages/ahmedshuhel_aurelia.js?hash=bd6f366dd6c78a1605a7dd6965abce3dae201fc3:3489:32)
    at link (http://localhost:3000/packages/ahmedshuhel_aurelia.js?hash=bd6f366dd6c78a1605a7dd6965abce3dae201fc3:3332:11)
    at Object.execute (http://localhost:3000/packages/ahmedshuhel_aurelia.js?hash=bd6f366dd6c78a1605a7dd6965abce3dae201fc3:3684:13)
    at doDynamicExecute (http://localhost:3000/packages/ahmedshuhel_aurelia.js?hash=bd6f366dd6c78a1605a7dd6965abce3dae201fc3:2111:25)
    at link (http://localhost:3000/packages/ahmedshuhel_aurelia.js?hash=bd6f366dd6c78a1605a7dd6965abce3dae201fc3:2312:20)
    at doLink (http://localhost:3000/packages/ahmedshuhel_aurelia.js?hash=bd6f366dd6c78a1605a7dd6965abce3dae201fc3:1965:7)
    at updateLinkSetOnLoad (http://localhost:3000/packages/ahmedshuhel_aurelia.js?hash=bd6f366dd6c78a1605a7dd6965abce3dae201fc3:2013:18)
    at http://localhost:3000/packages/ahmedshuhel_aurelia.js?hash=bd6f366dd6c78a1605a7dd6965abce3dae201fc3:1826:11__exec @ ahmedshuhel_aurelia.js?hash=bd6f366…:2637load.metadata.execute @ ahmedshuhel_aurelia.js?hash=bd6f366…:3873linkDynamicModule @ ahmedshuhel_aurelia.js?hash=bd6f366…:3489link @ ahmedshuhel_aurelia.js?hash=bd6f366…:3332execute @ ahmedshuhel_aurelia.js?hash=bd6f366…:3684doDynamicExecute @ ahmedshuhel_aurelia.js?hash=bd6f366…:2111link @ ahmedshuhel_aurelia.js?hash=bd6f366…:2312doLink @ ahmedshuhel_aurelia.js?hash=bd6f366…:1965updateLinkSetOnLoad @ ahmedshuhel_aurelia.js?hash=bd6f366…:2013(anonymous function) @ ahmedshuhel_aurelia.js?hash=bd6f366…:1826(anonymous function) @ meteor.js?hash=ae8b8af…:1105
(index):1 Uncaught (in promise) Uncaught SyntaxError: Unexpected token <
	Evaluating http://localhost:3000/aurelia-materialize-bridge
	Error loading http://localhost:3000/aurelia-materialize-bridge

And the unexpected token "<" is the beginning of an HTML code of aurelia-materialize-bridge:

<!DOCTYPE html>
<html>
<head>

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

</head>
<body>



<script type="text/javascript">__meteor_runtime_config__ = JSON.parse(decodeURIComponent("%7B%22meteorRelease%22%3A%22METEOR%401.4.2%22%2C%22meteorEnv%22%3A%7B%22NODE_ENV%22%3A%22development%22%2C%22TEST_METADATA%22%3A%22%7B%7D%22%7D%2C%22PUBLIC_SETTINGS%22%3A%7B%7D%2C%22ROOT_URL%22%3A%22http%3A%2F%2Flocalhost%3A3000%2F%22%2C%22ROOT_URL_PATH_PREFIX%22%3A%22%22%2C%22appId%22%3A%22192nwyfi9378c91y0s4%22%2C%22autoupdateVersion%22%3A%2252e95cca3d1c708261755359fd926213d1ebfd17%22%2C%22autoupdateVersionRefreshable%22%3A%22a4dda1c729c15335c8cfce90853e7735d3986a3b%22%2C%22autoupdateVersionCordova%22%3A%22none%22%7D"));</script>

  <script type="text/javascript" src="/packages/underscore.js?hash=27b3d669b418de8577518760446467e6ff429b1e"></script>
  <script type="text/javascript" src="/packages/meteor.js?hash=ae8b8affa9680bf9720bd8f7fa112f13a62f71c3"></script>
  <script type="text/javascript" src="/packages/meteor-base.js?hash=ee60f0ea32f4ed330a35c7e69a9e4c8c1d8fffb9"></script>
  <script type="text/javascript" src="/packages/mobile-experience.js?hash=0cca375566096f09988ce63d9a812da29ba73973"></script>
  <script type="text/javascript" src="/packages/modules-runtime.js?hash=ab7e8d32b6c7b5a5fa7ae1b65e8225c4f9e30223"></script>
  <script type="text/javascript" src="/packages/modules.js?hash=424b6529e7cc096df60634eb392d28be4f196ba3"></script>

madrus avatar Nov 02 '16 04:11 madrus