{"action":"created","issue":{"url":"https://api.github.com/repos/storybooks/storybook/issues/3754","repository_url":"https://api.github.com/repos/storybooks/storybook","labels_url":"https://api.github.com/repos/storybooks/storybook/issues/3754/labels{/name}","comments_url":"https://api.github.com/repos/storybooks/storybook/issues/3754/comments","events_url":"https://api.github.com/repos/storybooks/storybook/issues/3754/events","html_url":"https://github.com/storybooks/storybook/issues/3754","id":331220199,"node_id":"MDU6SXNzdWUzMzEyMjAxOTk=","number":3754,"title":"Storyshots with Storybook 4 for React fails with Angular import.","user":{"login":"swernerx","id":145201,"node_id":"MDQ6VXNlcjE0NTIwMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/145201?v=4","gravatar_id":"","url":"https://api.github.com/users/swernerx","html_url":"https://github.com/swernerx","followers_url":"https://api.github.com/users/swernerx/followers","following_url":"https://api.github.com/users/swernerx/following{/other_user}","gists_url":"https://api.github.com/users/swernerx/gists{/gist_id}","starred_url":"https://api.github.com/users/swernerx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swernerx/subscriptions","organizations_url":"https://api.github.com/users/swernerx/orgs","repos_url":"https://api.github.com/users/swernerx/repos","events_url":"https://api.github.com/users/swernerx/events{/privacy}","received_events_url":"https://api.github.com/users/swernerx/received_events","type":"User","site_admin":false},"labels":[{"id":603487528,"node_id":"MDU6TGFiZWw2MDM0ODc1Mjg=","url":"https://api.github.com/repos/storybooks/storybook/labels/addon:%20storyshots","name":"addon: storyshots","color":"fbca04","default":false},{"id":343576454,"node_id":"MDU6TGFiZWwzNDM1NzY0NTQ=","url":"https://api.github.com/repos/storybooks/storybook/labels/bug","name":"bug","color":"EB484F","default":true},{"id":622392928,"node_id":"MDU6TGFiZWw2MjIzOTI5Mjg=","url":"https://api.github.com/repos/storybooks/storybook/labels/merged","name":"merged","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-11T14:45:02Z","updated_at":"2018-06-13T20:43:45Z","closed_at":"2018-06-12T18:34:07Z","author_association":"NONE","body":"### Framework Loaders tries to load Angular stuff in React environment\r\n\r\nAfter updating from 4.0-alpha.4 to -alpha.9 I see the following happens:\r\n\r\n```\r\nCannot find module '@storybook/angular/options' from 'loader.js'\r\n\r\n      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:210:17)\r\n      at Object.<anonymous> (node_modules/@storybook/addon-storyshots/dist/angular/loader.js:7:16)\r\n```\r\n\r\nThis is the not touched `Story.test.js` which is used to execute the test runner:\r\n\r\n```js\r\nimport initStoryshots, {\r\n  multiSnapshotWithOptions\r\n} from \"@storybook/addon-storyshots\"\r\nimport { dirname } from \"path\"\r\n\r\ninitStoryshots({\r\n  // Delegate to centralized config\r\n  configPath: dirname(require.resolve(\"edge-storybook\")),\r\n\r\n  // Storing seperate snapshots for each individual story\r\n  test: multiSnapshotWithOptions({}),\r\n\r\n  // Ignore all containers, only snapshot pure components\r\n  // without any app logic or data fetching\r\n  storyKindRegex: /^((?!container).)*$/i\r\n})\r\n\r\n```\r\n\r\n### Steps to reproduce\r\n\r\nExecuting `jest` on the command line.\r\n\r\n\r\n### Please specify which version of Storybook and optionally any affected addons that you're running\r\n\r\n- storybook/react 4.0.0-alpha.9\r\n- storybook/addon-actions 4.0.0-alpha.9\r\n- storybook/addon-links 4.0.0-alpha.9\r\n- storybook/addon-storyshots 4.0.0-alpha.9\r\n- storybook/addon-viewport 4.0.0-alpha.9\r\n- jest 23.1.0\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/storybooks/storybook/issues/comments/397079807","html_url":"https://github.com/storybooks/storybook/issues/3754#issuecomment-397079807","issue_url":"https://api.github.com/repos/storybooks/storybook/issues/3754","id":397079807,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzA3OTgwNw==","user":{"login":"JCMais","id":1041647,"node_id":"MDQ6VXNlcjEwNDE2NDc=","avatar_url":"https://avatars1.githubusercontent.com/u/1041647?v=4","gravatar_id":"","url":"https://api.github.com/users/JCMais","html_url":"https://github.com/JCMais","followers_url":"https://api.github.com/users/JCMais/followers","following_url":"https://api.github.com/users/JCMais/following{/other_user}","gists_url":"https://api.github.com/users/JCMais/gists{/gist_id}","starred_url":"https://api.github.com/users/JCMais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JCMais/subscriptions","organizations_url":"https://api.github.com/users/JCMais/orgs","repos_url":"https://api.github.com/users/JCMais/repos","events_url":"https://api.github.com/users/JCMais/events{/privacy}","received_events_url":"https://api.github.com/users/JCMais/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T20:43:45Z","updated_at":"2018-06-13T20:43:45Z","author_association":"NONE","body":"@igor-dv may we get a new alpha version with this fix?"}}
{"actor":{"display_login":"JCMais"}}