{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-dev-webpack/issues/32","repository_url":"https://api.github.com/repos/NativeScript/nativescript-dev-webpack","labels_url":"https://api.github.com/repos/NativeScript/nativescript-dev-webpack/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-dev-webpack/issues/32/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-dev-webpack/issues/32/events","html_url":"https://github.com/NativeScript/nativescript-dev-webpack/issues/32","id":194460748,"number":32,"title":"npm run start-ios-bundle does not work on created application","user":{"login":"ignaciolarranaga","id":15932965,"avatar_url":"https://avatars.githubusercontent.com/u/15932965?v=3","gravatar_id":"","url":"https://api.github.com/users/ignaciolarranaga","html_url":"https://github.com/ignaciolarranaga","followers_url":"https://api.github.com/users/ignaciolarranaga/followers","following_url":"https://api.github.com/users/ignaciolarranaga/following{/other_user}","gists_url":"https://api.github.com/users/ignaciolarranaga/gists{/gist_id}","starred_url":"https://api.github.com/users/ignaciolarranaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignaciolarranaga/subscriptions","organizations_url":"https://api.github.com/users/ignaciolarranaga/orgs","repos_url":"https://api.github.com/users/ignaciolarranaga/repos","events_url":"https://api.github.com/users/ignaciolarranaga/events{/privacy}","received_events_url":"https://api.github.com/users/ignaciolarranaga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-12-08T22:23:20Z","updated_at":"2016-12-24T11:16:16Z","closed_at":null,"body":"It throws exception and it does not start:\r\n\r\n```\r\n$ npm run start-ios-bundle\r\n\r\n> @ prestart-ios-bundle /private/tmp/Sample\r\n> npm run webpack-ios\r\n\r\n\r\n> @ prewebpack-ios /private/tmp/Sample\r\n> npm run clean-ios\r\n\r\n\r\n> @ clean-ios /private/tmp/Sample\r\n> tns clean-app ios\r\n\r\n\r\n> @ webpack-ios /private/tmp/Sample\r\n> webpack --config=webpack.ios.js --progress\r\n\r\n  0% compilingError: AppModule is not an NgModule\r\n    at AotPlugin.getNgModuleMetadata (/private/tmp/Sample/node_modules/@ngtools/webpack/src/plugin.js:297:19)\r\n    at AotPlugin._processNgModule (/private/tmp/Sample/node_modules/@ngtools/webpack/src/plugin.js:241:42)\r\n    at /private/tmp/Sample/node_modules/@ngtools/webpack/src/plugin.js:217:39\r\n    at process._tickCallback (node.js:405:9)\r\n    at Function.Module.runMain (module.js:432:11)\r\n    at startup (node.js:141:18)\r\n    at node.js:1003:3\r\n```\r\n\r\nSteps to reproduce:\r\n\r\n```\r\n$ tns create Sample --ng\r\n$ npm install --save-dev nativescript-dev-webpack\r\n$ npm run start-ios-bundle\r\n```"},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-dev-webpack/issues/comments/269080284","html_url":"https://github.com/NativeScript/nativescript-dev-webpack/issues/32#issuecomment-269080284","issue_url":"https://api.github.com/repos/NativeScript/nativescript-dev-webpack/issues/32","id":269080284,"user":{"login":"ignaciolarranaga","id":15932965,"avatar_url":"https://avatars.githubusercontent.com/u/15932965?v=3","gravatar_id":"","url":"https://api.github.com/users/ignaciolarranaga","html_url":"https://github.com/ignaciolarranaga","followers_url":"https://api.github.com/users/ignaciolarranaga/followers","following_url":"https://api.github.com/users/ignaciolarranaga/following{/other_user}","gists_url":"https://api.github.com/users/ignaciolarranaga/gists{/gist_id}","starred_url":"https://api.github.com/users/ignaciolarranaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignaciolarranaga/subscriptions","organizations_url":"https://api.github.com/users/ignaciolarranaga/orgs","repos_url":"https://api.github.com/users/ignaciolarranaga/repos","events_url":"https://api.github.com/users/ignaciolarranaga/events{/privacy}","received_events_url":"https://api.github.com/users/ignaciolarranaga/received_events","type":"User","site_admin":false},"created_at":"2016-12-24T11:16:16Z","updated_at":"2016-12-24T11:16:16Z","body":"Hey, sorry for the delay, I'm progressing slowly.\r\nI'm creating a project from scratch replicating all the things I'm using, step by step so I can detect exactly when gets broken and have more context to solve it.\r\n\r\nHere is the first finding. I was doing the import of the platformModule in this way:\r\n```\r\nimport platformModule = require(\"platform\");\r\n....\r\nvar locale = platformModule.device.language;\r\n```\r\nwhich lead me to this error: `EXCEPTION: Can't find variable: platformModule`\r\n\r\nI solve it just moving to the way it is now presented in here: http://docs.nativescript.org/angular/code-samples/platform.html\r\n\r\nDespite the previous and only on ios, this error appears #42, but it does not prevent the application from bootstrap."}}
{"actor":{"display_login":"ignaciolarranaga"}}