{"action":"created","issue":{"url":"https://api.github.com/repos/drcmda/react-spring/issues/278","repository_url":"https://api.github.com/repos/drcmda/react-spring","labels_url":"https://api.github.com/repos/drcmda/react-spring/issues/278/labels{/name}","comments_url":"https://api.github.com/repos/drcmda/react-spring/issues/278/comments","events_url":"https://api.github.com/repos/drcmda/react-spring/issues/278/events","html_url":"https://github.com/drcmda/react-spring/issues/278","id":374072633,"node_id":"MDU6SXNzdWUzNzQwNzI2MzM=","number":278,"title":"react-spring v6 importing parallax not working","user":{"login":"iammarkps","id":12445326,"node_id":"MDQ6VXNlcjEyNDQ1MzI2","avatar_url":"https://avatars2.githubusercontent.com/u/12445326?v=4","gravatar_id":"","url":"https://api.github.com/users/iammarkps","html_url":"https://github.com/iammarkps","followers_url":"https://api.github.com/users/iammarkps/followers","following_url":"https://api.github.com/users/iammarkps/following{/other_user}","gists_url":"https://api.github.com/users/iammarkps/gists{/gist_id}","starred_url":"https://api.github.com/users/iammarkps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iammarkps/subscriptions","organizations_url":"https://api.github.com/users/iammarkps/orgs","repos_url":"https://api.github.com/users/iammarkps/repos","events_url":"https://api.github.com/users/iammarkps/events{/privacy}","received_events_url":"https://api.github.com/users/iammarkps/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-25T18:24:10Z","updated_at":"2018-10-26T12:59:17Z","closed_at":null,"author_association":"NONE","body":"```\r\nUnexpected identifier\r\n\r\n/Users/iammark/Projects/openhouse/node_modules/react-spring/dist/addons.js:1\r\n(function (exports, require, module, __filename, __dirname) { import _extends from '@babel/runtime/helpers/esm/extends';\r\n                                                                     ^^^^^^^^\r\n\r\nSyntaxError: Unexpected identifier\r\n    at new Script (vm.js:79:7)\r\n    at createScript (vm.js:251:10)\r\n    at Object.runInThisContext (vm.js:303:10)\r\n    at Module._compile (internal/modules/cjs/loader.js:657:28)\r\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)\r\n    at Module.load (internal/modules/cjs/loader.js:599:32)\r\n    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)\r\n    at Function.Module._load (internal/modules/cjs/loader.js:530:3)\r\n    at Module.require (internal/modules/cjs/loader.js:637:17)\r\n    at require (internal/modules/cjs/helpers.js:20:18)\r\n    at Object.react-spring/dist/addons (/Users/iammark/Projects/openhouse/.next/server/static/development/pages/index.js:2031:18)\r\n    at __webpack_require__ (/Users/iammark/Projects/openhouse/.next/server/static/development/pages/index.js:23:31)\r\n    at Module../pages/index.js (/Users/iammark/Projects/openhouse/.next/server/static/development/pages/index.js:1785:82)\r\n    at __webpack_require__ (/Users/iammark/Projects/openhouse/.next/server/static/development/pages/index.js:23:31)\r\n    at Object.3 (/Users/iammark/Projects/openhouse/.next/server/static/development/pages/index.js:1964:18)\r\n    at __webpack_require__ (/Users/iammark/Projects/openhouse/.next/server/static/development/pages/index.js:23:31)\r\n```\r\nWhen I tried to import parallax from 'react-spring/dist/addons' it's throwing me this error.\r\nThis is my import code\r\n```\r\nimport { ParallaxLayer } from 'react-spring/dist/addons'\r\nimport { Spring } from 'react-spring'\r\n```"},"comment":{"url":"https://api.github.com/repos/drcmda/react-spring/issues/comments/433398936","html_url":"https://github.com/drcmda/react-spring/issues/278#issuecomment-433398936","issue_url":"https://api.github.com/repos/drcmda/react-spring/issues/278","id":433398936,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzM5ODkzNg==","user":{"login":"drcmda","id":2223602,"node_id":"MDQ6VXNlcjIyMjM2MDI=","avatar_url":"https://avatars0.githubusercontent.com/u/2223602?v=4","gravatar_id":"","url":"https://api.github.com/users/drcmda","html_url":"https://github.com/drcmda","followers_url":"https://api.github.com/users/drcmda/followers","following_url":"https://api.github.com/users/drcmda/following{/other_user}","gists_url":"https://api.github.com/users/drcmda/gists{/gist_id}","starred_url":"https://api.github.com/users/drcmda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drcmda/subscriptions","organizations_url":"https://api.github.com/users/drcmda/orgs","repos_url":"https://api.github.com/users/drcmda/repos","events_url":"https://api.github.com/users/drcmda/events{/privacy}","received_events_url":"https://api.github.com/users/drcmda/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T12:59:17Z","updated_at":"2018-10-26T12:59:17Z","author_association":"OWNER","body":"Really weird, could you share your repo somehow? It looks to me as if it doesn't pick up the correct entry point (which for the web is src/targets/web/index.js) -- in there the globals are set. Missing globals is almost certainly a weird entry. Or maybe tree-shaking is messing with it. In my projects i'm using straight webpack, and codesandbox, they all seem fine. It must be something peculiar in the way you fetch this lib."}}
{"actor":{"display_login":"drcmda"}}