Skip to content
This repository has been archived by the owner on Mar 30, 2020. It is now read-only.

Hello World App appears in the symphony layout but after clicking Add button it doesn't appear in the left menu #14

Open
arif-pixako opened this issue Aug 22, 2017 · 9 comments

Comments

@arif-pixako
Copy link

Hello App appears in the symphony layout but after clicking Add button it doesn't appear in the left menu nor it displays the views.
In webstorm editor it gives error
var helloControllerService = SYMPHONY.services.register("hello:controller");
^

ReferenceError: SYMPHONY is not defined
at Object. (c:\Users\developer\WebstormProjects\symphonyApp\src\javascript\controller.js:22:48)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:504:3

@brybailey
Copy link
Contributor

Hello @arif-pixako ! In your controller.html file, check that the line <script type="text/javascript" src="https://www.symphony.com/resources/api/v1.0/symphony-api.js" charset="utf-8"></script> is in the tag. If it is, then that symphony-api.js file is not loading properly, and that will be an issue that will need to be addressed.

@bhushanpant
Copy link

Facing the same issue.

@bhushanpant
Copy link

bhushanpant commented Aug 23, 2017

@brybailey I checked the tag, it is placed fine is guess, still not showing on the left menu.

@arif-pixako
Copy link
Author

arif-pixako commented Aug 23, 2017

Script is in the tags.
while compiling it shows errors like this
ERROR in ./src/javascript/app.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./data in C:\Users\developer\WebstormProjects\symphony\src\javascript
@ ./src/javascript/app.js 26:18-35

ERROR in ./src/javascript/controller.js
Module parse failed: C:\Users\developer\WebstormProjects\symphony\src\javascript\controller.js Unexpected token (235:4)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (235:4)
at Parser.pp$4.raise (C:\Users\developer\WebstormProjects\symphony\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\Users\developer\WebstormProjects\symphony\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp$3.parseExprAtom (C:\Users\developer\WebstormProjects\symphony\node_modules\acorn\dist\acorn.js:1822:12)
at Parser.pp$3.parseExprSubscripts (C:\Users\developer\WebstormProjects\symphony\node_modules\acorn\dist\acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (C:\Users\developer\WebstormProjects\symphony\node_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOps (C:\Users\developer\WebstormProjects\symphony\node_modules\acorn\dist\acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (C:\Users\developer\WebstormProjects\symphony\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\Users\developer\WebstormProjects\symphony\node_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExpression (C:\Users\developer\WebstormProjects\symphony\node_modules\acorn\dist\acorn.js:1573:21)
at Parser.pp$1.parseStatement (C:\Users\developer\WebstormProjects\symphony\node_modules\acorn\dist\acorn.js:727:47)
at Parser.pp$1.parseTopLevel (C:\Users\developer\WebstormProjects\symphony\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\Users\developer\WebstormProjects\symphony\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\Users\developer\WebstormProjects\symphony\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\Users\developer\WebstormProjects\symphony\node_modules\webpack\lib\Parser.js:902:15)
at DependenciesBlock. (C:\Users\developer\WebstormProjects\symphony\node_modules\webpack\lib\NormalModule.js:104:16)
at DependenciesBlock.onModuleBuild (C:\Users\developer\WebstormProjects\symphony\node_modules\webpack-core\lib\NormalModuleMixin.js:310:10)
webpack: Failed to compile.

And in the console it shows
GET https://localhost:4000/controller.bundle.js controller.html:32
(Failed to load resource: the server responded with a status of 404 (Not Found) controller.bundle.js)

Can any body provide me this app deployment video.

@bhushanpant
Copy link

@arif-pixako @brybailey any update on this?

@pmonks
Copy link

pmonks commented Aug 24, 2017

@arif-pixako rather than pasting in large chunks of code in issues, can you prepare a Pull Request for this change? That will be much easier to review and merge into the upstream code.

Thanks!

@brybailey
Copy link
Contributor

Hi @arif-pixako and @bhushanpant, your problem should be resolved with the recent commit. Please update your repos and let me know if you have any further issues!

@arif-pixako
Copy link
Author

arif-pixako commented Aug 26, 2017 via email

@arif-pixako
Copy link
Author

arif-pixako commented Sep 12, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants