{"action":"created","issue":{"url":"https://api.github.com/repos/Canner/canner/issues/47","repository_url":"https://api.github.com/repos/Canner/canner","labels_url":"https://api.github.com/repos/Canner/canner/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/Canner/canner/issues/47/comments","events_url":"https://api.github.com/repos/Canner/canner/issues/47/events","html_url":"https://github.com/Canner/canner/issues/47","id":347428558,"node_id":"MDU6SXNzdWUzNDc0Mjg1NTg=","number":47,"title":"Does not compile on fresh install after setup","user":{"login":"memolipd","id":398861,"node_id":"MDQ6VXNlcjM5ODg2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/398861?v=4","gravatar_id":"","url":"https://api.github.com/users/memolipd","html_url":"https://github.com/memolipd","followers_url":"https://api.github.com/users/memolipd/followers","following_url":"https://api.github.com/users/memolipd/following{/other_user}","gists_url":"https://api.github.com/users/memolipd/gists{/gist_id}","starred_url":"https://api.github.com/users/memolipd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memolipd/subscriptions","organizations_url":"https://api.github.com/users/memolipd/orgs","repos_url":"https://api.github.com/users/memolipd/repos","events_url":"https://api.github.com/users/memolipd/events{/privacy}","received_events_url":"https://api.github.com/users/memolipd/received_events","type":"User","site_admin":false},"labels":[{"id":852270230,"node_id":"MDU6TGFiZWw4NTIyNzAyMzA=","url":"https://api.github.com/repos/Canner/canner/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-03T14:54:46Z","updated_at":"2018-08-10T10:53:19Z","closed_at":null,"author_association":"NONE","body":"```\r\npaolo:canner-neo4j/ (master*) $ nvm version                                                                                                                                                      [15:53:45]\r\nv8.11.2\r\n```\r\n\r\n```\r\npaolo:canner-neo4j/ (master*) $ canner init:schema                                                                                                                                               [15:48:55]\r\n  Initializing schema...\r\n? What template do you want to create? Company\r\n? What data source do you want to use? Firebase admin\r\n? '/Users/paolo/DEV/repos/canner-neo4j/cert/firebase' is already existed. Do you want to remove it? Yes\r\n? '/Users/paolo/DEV/repos/canner-neo4j/canner.schema.js' is already existed. Do you want to remove it? Yes\r\n? '/Users/paolo/DEV/repos/canner-neo4j/schema' is already existed. Do you want to remove it? Yes\r\n✔ Initialized\r\n\r\nNext Steps:\r\n\r\n  - Serve your CMS: canner script:serve\r\n\r\n  - Or follow the docs below to connect your data source:\r\n      Firebase Admin: https://www.canner.io/docs/start-quick-firebase.html\r\n      Prisma: https://www.canner.io/docs/start-quick-prisma.html\r\n\r\npaolo:canner-neo4j/ (master*) $ canner script:serve                                                                                                                                              [15:49:11]\r\nℹ Starting CMS server on http://localhost:9090\r\n✖ ｢wdm｣: Hash: a02b6628f01631b71c0c\r\nVersion: webpack 4.16.4\r\nTime: 539ms\r\nBuilt at: 2018-08-03 15:49:19\r\n         Asset      Size  Chunks             Chunk Names\r\n    index.html  1.17 KiB          [emitted]\r\nmain.bundle.js  29.3 KiB    main  [emitted]  main\r\nEntrypoint main = main.bundle.js\r\n[0] multi (webpack)-dev-server/client?http://localhost /var/folders/6c/m2phtvt9277d44jb0bkxtj5h0000gn/T/_cnr-428641MR91DQu8Tmn.js 40 bytes {main} [built]\r\n\r\nERROR in multi (webpack)-dev-server/client?http://localhost /var/folders/6c/m2phtvt9277d44jb0bkxtj5h0000gn/T/_cnr-428641MR91DQu8Tmn.js\r\nModule not found: Error: Can't resolve 'babel-loader' in '/Users/paolo/DEV/repos/canner-neo4j'\r\n @ multi (webpack)-dev-server/client?http://localhost /var/folders/6c/m2phtvt9277d44jb0bkxtj5h0000gn/T/_cnr-428641MR91DQu8Tmn.js main[0]\r\n\r\nERROR in multi (webpack)-dev-server/client?http://localhost /var/folders/6c/m2phtvt9277d44jb0bkxtj5h0000gn/T/_cnr-428641MR91DQu8Tmn.js\r\nModule not found: Error: Can't resolve 'babel-loader' in '/Users/paolo/DEV/repos/canner-neo4j'\r\n @ multi (webpack)-dev-server/client?http://localhost /var/folders/6c/m2phtvt9277d44jb0bkxtj5h0000gn/T/_cnr-428641MR91DQu8Tmn.js main[1]\r\n\r\nERROR in   Error: Child compilation failed:\r\n  Module not found: Error: Can't resolve 'babel-loader' in '/Users/paolo/DEV/repos/canner-neo4j':\r\n  Error: Can't resolve 'babel-loader' in '/Users/paolo/DEV/repos/canner-neo4j'\r\n  Module not found: Error: Can't resolve 'babel-loader' in '/Users/paolo/DEV/repos/canner-neo4j':\r\n  Error: Can't resolve 'babel-loader' in '/Users/paolo/DEV/repos/canner-neo4j'\r\n\r\n  - compiler.js:79 childCompiler.runAsChild\r\n    [global]/[html-webpack-plugin]/lib/compiler.js:79:16\r\n\r\n  - Compiler.js:296 compile\r\n    [global]/[webpack]/lib/Compiler.js:296:11\r\n\r\n  - Compiler.js:553 hooks.afterCompile.callAsync.err\r\n    [global]/[webpack]/lib/Compiler.js:553:14\r\n\r\n\r\n  - Hook.js:35 AsyncSeriesHook.lazyCompileHook [as _callAsync]\r\n    [global]/[tapable]/lib/Hook.js:35:21\r\n\r\n  - Compiler.js:550 compilation.seal.err\r\n    [global]/[webpack]/lib/Compiler.js:550:30\r\n\r\n\r\n  - Hook.js:35 AsyncSeriesHook.lazyCompileHook [as _callAsync]\r\n    [global]/[tapable]/lib/Hook.js:35:21\r\n\r\n  - Compilation.js:1284 hooks.optimizeAssets.callAsync.err\r\n    [global]/[webpack]/lib/Compilation.js:1284:35\r\n\r\n\r\n\r\nChild html-webpack-plugin for \"index.html\":\r\n         Asset      Size  Chunks  Chunk Names\r\n    index.html  1.38 MiB       0\r\n    Entrypoint undefined = index.html\r\n    [../../../.config/yarn/global/node_modules/html-webpack-plugin/lib/loader.js!../../../.config/yarn/global/node_modules/@canner/cli/lib/serve/template.html] /Users/paolo/.config/yarn/global/node_modules/html-webpack-plugin/lib/loader.js!/Users/paolo/.config/yarn/global/node_modules/@canner/cli/lib/serve/template.html 2.01 KiB {0} [built]\r\n    [../../../.config/yarn/global/node_modules/lodash/lodash.js] /Users/paolo/.config/yarn/global/node_modules/lodash/lodash.js 527 KiB {0} [built]\r\n\r\n    ERROR in /Users/paolo/.config/yarn/global/node_modules/lodash/lodash.js\r\n    Module not found: Error: Can't resolve 'babel-loader' in '/Users/paolo/DEV/repos/canner-neo4j'\r\n     @ /Users/paolo/.config/yarn/global/node_modules/lodash/lodash.js 1:0-41\r\n     @ /Users/paolo/.config/yarn/global/node_modules/html-webpack-plugin/lib/loader.js!/Users/paolo/.config/yarn/global/node_modules/@canner/cli/lib/serve/template.html\r\n\r\n    ERROR in /Users/paolo/.config/yarn/global/node_modules/lodash/lodash.js\r\n    Module not found: Error: Can't resolve 'babel-loader' in '/Users/paolo/DEV/repos/canner-neo4j'\r\n     @ /Users/paolo/.config/yarn/global/node_modules/lodash/lodash.js 1:0-41\r\n     @ /Users/paolo/.config/yarn/global/node_modules/html-webpack-plugin/lib/loader.js!/Users/paolo/.config/yarn/global/node_modules/@canner/cli/lib/serve/template.html\r\nℹ ｢wdm｣: Failed to compile.\r\nℹ Shutting down CMS server.\r\n```\r\n\r\nAlso noticed theres no package.json file created, is this by design?"},"comment":{"url":"https://api.github.com/repos/Canner/canner/issues/comments/412048895","html_url":"https://github.com/Canner/canner/issues/47#issuecomment-412048895","issue_url":"https://api.github.com/repos/Canner/canner/issues/47","id":412048895,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjA0ODg5NQ==","user":{"login":"abz53378","id":8848231,"node_id":"MDQ6VXNlcjg4NDgyMzE=","avatar_url":"https://avatars0.githubusercontent.com/u/8848231?v=4","gravatar_id":"","url":"https://api.github.com/users/abz53378","html_url":"https://github.com/abz53378","followers_url":"https://api.github.com/users/abz53378/followers","following_url":"https://api.github.com/users/abz53378/following{/other_user}","gists_url":"https://api.github.com/users/abz53378/gists{/gist_id}","starred_url":"https://api.github.com/users/abz53378/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abz53378/subscriptions","organizations_url":"https://api.github.com/users/abz53378/orgs","repos_url":"https://api.github.com/users/abz53378/repos","events_url":"https://api.github.com/users/abz53378/events{/privacy}","received_events_url":"https://api.github.com/users/abz53378/received_events","type":"User","site_admin":false},"created_at":"2018-08-10T10:53:19Z","updated_at":"2018-08-10T10:53:19Z","author_association":"COLLABORATOR","body":"Hi, @memolipd , thanks for your information, I finally reproduced the same error after I used `yarn` to install `@canner/cli`. In my case , even if I reinstall it with `npm i -g @canner/cli`, it still uses the one in yarn and throws the same error as you posted. You can verify it by `which canner`, it will print `/usr/local/bin/canner`(the default bin folder of yarn) instead of `/Users/paolo/.nvm/versions/node/v10.8.0/bin/canner`.\r\n\r\nBut I can't figure out what's wrong with `@canner/cli` in yarn, so the solution, for now, is removing the `@canner/cli` in yarn with command **`yarn global remove @canner/cli`**. \r\n\r\nThanks!"}}
{"actor":{"display_login":"abz53378"}}