{"action":"created","issue":{"url":"https://api.github.com/repos/fable-compiler/Fable/issues/544","repository_url":"https://api.github.com/repos/fable-compiler/Fable","labels_url":"https://api.github.com/repos/fable-compiler/Fable/issues/544/labels{/name}","comments_url":"https://api.github.com/repos/fable-compiler/Fable/issues/544/comments","events_url":"https://api.github.com/repos/fable-compiler/Fable/issues/544/events","html_url":"https://github.com/fable-compiler/Fable/issues/544","id":188958870,"number":544,"title":"Error when bundling when changes are saved one after the other","user":{"login":"rkosafo","id":21700034,"avatar_url":"https://avatars.githubusercontent.com/u/21700034?v=3","gravatar_id":"","url":"https://api.github.com/users/rkosafo","html_url":"https://github.com/rkosafo","followers_url":"https://api.github.com/users/rkosafo/followers","following_url":"https://api.github.com/users/rkosafo/following{/other_user}","gists_url":"https://api.github.com/users/rkosafo/gists{/gist_id}","starred_url":"https://api.github.com/users/rkosafo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkosafo/subscriptions","organizations_url":"https://api.github.com/users/rkosafo/orgs","repos_url":"https://api.github.com/users/rkosafo/repos","events_url":"https://api.github.com/users/rkosafo/events{/privacy}","received_events_url":"https://api.github.com/users/rkosafo/received_events","type":"User","site_admin":false},"labels":[{"id":309670955,"url":"https://api.github.com/repos/fable-compiler/Fable/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-13T08:27:58Z","updated_at":"2016-11-13T11:05:18Z","closed_at":null,"body":"### Description\r\n\r\nWhen fable compiler is in watch mode, it crashes during bundling when errors are corrected.\r\n\r\nMy `fableconfig.json` file\r\n\r\n\t{ \r\n\t  \"projFile\": \"clearhud-frontend.fsproj\",\r\n\t  \"sourceMaps\": false,\r\n\t  \"babelPlugins\": [\r\n\t\t\"transform-runtime\"\r\n\t  ],\r\n\t  \"outDir\": \"out\",\r\n\t  \"targets\": {\r\n\t\t\"debug\": { \"watch\": true }\r\n\t  },\r\n\t  \"rollup\": {\r\n\t\t\"entry\": \"./out/Program.js\",\r\n\t\t\"external\": [ \"jquery\" ],\r\n\t\t\"globals\": {\r\n\t\t  \"jquery\": \"jQuery\"\r\n\t\t},\r\n\t\t\"plugins\":[\r\n\t\t  [\"replace\", {\"process.env.NODE_ENV\": \"'production'\"}],\r\n\t\t  [\"commonjs\", {\r\n\t\t\t\"namedExports\": {\r\n\t\t\t  \"react\": [\"Component\", \"createElement\"],\r\n\t\t\t  \"react-dom\": [\"render\"]\r\n\t\t\t}\r\n\t\t  }]\r\n\t\t]\r\n\t  }\r\n\t}\r\n\r\n\r\nExact log from command line\r\n\r\n\tE:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend>npm run fwatch\r\n\r\n\t> clearhud-frontend@1.0.0 fwatch E:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend\r\n\t> node ./node_modules/fable-compiler/index.js -d\r\n\r\n\tfable-compiler 0.7.5-alpha.34: Start compilation...\r\n\tCompiled Essentials.js at 7:55:38 AM\r\n\tCompiled Utilities.js at 7:55:38 AM\r\n\tCompiled MessageBus.js at 7:55:38 AM\r\n\tCompiled Model.js at 7:55:38 AM\r\n\tCompiled SUI.js at 7:55:39 AM\r\n\tCompiled Form.js at 7:55:42 AM\r\n\tCompiled Http.js at 7:55:42 AM\r\n\tCompiled Ports.js at 7:55:42 AM\r\n\tCompiled Api.js at 7:55:43 AM\r\n\tCompiled Server.js at 7:55:43 AM\r\n\tCompiled Store.js at 7:55:43 AM\r\n\tCompiled Assets.js at 7:55:43 AM\r\n\tCompiled FirmPanel.js at 7:55:43 AM\r\n\tCompiled LoginPanel.js at 7:55:44 AM\r\n\tCompiled UserProfilePanel.js at 7:55:44 AM\r\n\tCompiled HelpPanel.js at 7:55:44 AM\r\n\tCompiled ChangePasswordPanel.js at 7:55:45 AM\r\n\tCompiled UserInfoPanel.js at 7:55:45 AM\r\n\tCompiled TopPanel.js at 7:55:46 AM\r\n\tCompiled AppWindow.js at 7:55:46 AM\r\n\tCompiled ContentPanelPanel.js at 7:55:47 AM\r\n\tCompiled AppPanel.js at 7:55:47 AM\r\n\tCompiled LoadingPanel.js at 7:55:47 AM\r\n\tCompiled InstancePanel.js at 7:55:47 AM\r\n\tCompiled Program.js at 7:55:47 AM\r\n\tBundling...\r\n\tBundled bundle.js at 7:56:02 AM\r\n\tWatching E:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend\r\n\tPress Enter to terminate process.\r\n\tchange: E:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend\\Common\\Model.fs at 7:57:41 AM\r\n\t[ERROR] F# project contains errors:\r\n\tThe value or constructor 'appWindowPropsWithDefaults' is not defined (L30,24-L30,50) (Ports.fs)\r\n\tchange: E:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend\\App\\Ports.fs at 8:00:50 AM\r\n\tCompiled Ports.js at 8:00:54 AM\r\n\tBundling...\r\n\t[BUNDLE ERROR] 'appWindowPropsWithDefaultss' is not exported by E:/Work/Clearbyte/ClearHud/clearhud-frontend/out/Common/Model.js (imported by E:/Work/Clearbyte/ClearHud/clearhud-frontend/out/App/Ports.js). For help fixing this error see https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module\r\n\tError: 'appWindowPropsWithDefaultss' is not exported by E:/Work/Clearbyte/ClearHud/clearhud-frontend/out/Common/Model.js (imported by E:/Work/Clearbyte/ClearHud/clearhud-frontend/out/App/Ports.js). For help fixing this error see https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module\r\n\t\tat Module.trace (E:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend\\node_modules\\rollup\\dist\\rollup.js:7739:29)\r\n\t\tat ModuleScope.findDeclaration (E:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend\\node_modules\\rollup\\dist\\rollup.js:7361:22)\r\n\t\tat Scope.findDeclaration (E:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend\\node_modules\\rollup\\dist\\rollup.js:5361:39)\r\n\t\tat Scope.findDeclaration (E:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend\\node_modules\\rollup\\dist\\rollup.js:5361:39)\r\n\t\tat Scope.findDeclaration (E:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend\\node_modules\\rollup\\dist\\rollup.js:5361:39)\r\n\t\tat Scope.findDeclaration (E:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend\\node_modules\\rollup\\dist\\rollup.js:5361:39)\r\n\t\tat Node.bind (E:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend\\node_modules\\rollup\\dist\\rollup.js:5846:28)\r\n\t\tat E:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend\\node_modules\\rollup\\dist\\rollup.js:5155:50\r\n\t\tat Node.eachChild (E:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend\\node_modules\\rollup\\dist\\rollup.js:5172:5)\r\n\t\tat Node.bind (E:\\Work\\Clearbyte\\ClearHud\\clearhud-frontend\\node_modules\\rollup\\dist\\rollup.js:5155:7)\r\n\r\n### Repro steps\r\n\r\n1. Create a new project with two files (FileA.fs and FileB)\r\n\r\n2. Add a function(doX) to FileA and call it from file B\r\n\r\n3. Start fable with watch and bundling enabled\r\n\r\n4. Rename function doX in FileA to doXx and save\r\n\r\n5. Go to FileB, fix the error resulting from the renaming before and save.\r\n\r\n### Expected behavior\r\n\r\nApp compiles and bundle.js is generated\r\n\r\n### Actual behavior\r\n\r\nProcess fails with bundle error.\r\n\r\n### Known workarounds\r\n\r\nStart the complier again when it exists\r\n\r\n### Related information \r\n\r\n* Fable Version: 0.7.5-alpha.34\r\n* .NET Runtime, CoreCLR or Mono Version\r\n* Operating system: Windows 10\r\n"},"comment":{"url":"https://api.github.com/repos/fable-compiler/Fable/issues/comments/260179351","html_url":"https://github.com/fable-compiler/Fable/issues/544#issuecomment-260179351","issue_url":"https://api.github.com/repos/fable-compiler/Fable/issues/544","id":260179351,"user":{"login":"alfonsogarciacaro","id":8275461,"avatar_url":"https://avatars.githubusercontent.com/u/8275461?v=3","gravatar_id":"","url":"https://api.github.com/users/alfonsogarciacaro","html_url":"https://github.com/alfonsogarciacaro","followers_url":"https://api.github.com/users/alfonsogarciacaro/followers","following_url":"https://api.github.com/users/alfonsogarciacaro/following{/other_user}","gists_url":"https://api.github.com/users/alfonsogarciacaro/gists{/gist_id}","starred_url":"https://api.github.com/users/alfonsogarciacaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfonsogarciacaro/subscriptions","organizations_url":"https://api.github.com/users/alfonsogarciacaro/orgs","repos_url":"https://api.github.com/users/alfonsogarciacaro/repos","events_url":"https://api.github.com/users/alfonsogarciacaro/events{/privacy}","received_events_url":"https://api.github.com/users/alfonsogarciacaro/received_events","type":"User","site_admin":false},"created_at":"2016-11-13T11:05:18Z","updated_at":"2016-11-13T11:05:18Z","body":"Ok, thanks for the info. I'll try to reproduce on my side :+1:"}}
{"actor":{"display_login":"alfonsogarciacaro"}}