{"action":"created","issue":{"url":"https://api.github.com/repos/michalkvasnicak/babel-plugin-css-modules-transform/issues/13","repository_url":"https://api.github.com/repos/michalkvasnicak/babel-plugin-css-modules-transform","labels_url":"https://api.github.com/repos/michalkvasnicak/babel-plugin-css-modules-transform/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/michalkvasnicak/babel-plugin-css-modules-transform/issues/13/comments","events_url":"https://api.github.com/repos/michalkvasnicak/babel-plugin-css-modules-transform/issues/13/events","html_url":"https://github.com/michalkvasnicak/babel-plugin-css-modules-transform/issues/13","id":157895036,"number":13,"title":"processCss file path","user":{"login":"olegakbarov","id":2352181,"avatar_url":"https://avatars.githubusercontent.com/u/2352181?v=3","gravatar_id":"","url":"https://api.github.com/users/olegakbarov","html_url":"https://github.com/olegakbarov","followers_url":"https://api.github.com/users/olegakbarov/followers","following_url":"https://api.github.com/users/olegakbarov/following{/other_user}","gists_url":"https://api.github.com/users/olegakbarov/gists{/gist_id}","starred_url":"https://api.github.com/users/olegakbarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegakbarov/subscriptions","organizations_url":"https://api.github.com/users/olegakbarov/orgs","repos_url":"https://api.github.com/users/olegakbarov/repos","events_url":"https://api.github.com/users/olegakbarov/events{/privacy}","received_events_url":"https://api.github.com/users/olegakbarov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":46,"created_at":"2016-06-01T12:31:52Z","updated_at":"2016-07-04T15:13:51Z","closed_at":null,"body":"Thanks for cool project! \r\n\r\nThough config seems straightforward i keep getting same output:\r\n\r\n```\r\n/Users/oleg/code/extreme/node_modules/babel-core/lib/transformation/file/index.js:591\r\n      throw err;\r\n      ^\r\n\r\nError: /Users/oleg/code/extreme/src/server-entry.js: Module '/Users/oleg/code/extreme/src/utils/runtimeStyles.js' does not exist or is not a function.\r\n    at /Users/oleg/code/extreme/node_modules/babel-plugin-css-modules-transform/build/index.js:116:35\r\n    at Array.forEach (native)\r\n    at PluginPass.Program (/Users/oleg/code/extreme/node_modules/babel-plugin-css-modules-transform/build/index.js:77:32)\r\n    at newFn (/Users/oleg/code/extreme/node_modules/babel-traverse/lib/visitors.js:310:19)\r\n    at NodePath._call (/Users/oleg/code/extreme/node_modules/babel-traverse/lib/path/context.js:78:18)\r\n    at NodePath.call (/Users/oleg/code/extreme/node_modules/babel-traverse/lib/path/context.js:49:17)\r\n    at NodePath.visit (/Users/oleg/code/extreme/node_modules/babel-traverse/lib/path/context.js:108:12)\r\n    at TraversalContext.visitQueue (/Users/oleg/code/extreme/node_modules/babel-traverse/lib/context.js:174:16)\r\n    at TraversalContext.visitSingle (/Users/oleg/code/extreme/node_modules/babel-traverse/lib/context.js:124:19)\r\n    at TraversalContext.visit (/Users/oleg/code/extreme/node_modules/babel-traverse/lib/context.js:219:19)\r\n\r\n```\r\nI swear to god i have the this file in proper directory with this content:\r\n\r\n````\r\nmodule.exports = function runtimeStyles(data, filename) {\r\n  console.log(data, filename);\r\n};\r\n```\r\n\r\nBabel config follows:\r\n\r\n```\r\n{\r\n  \"presets\": [\"es2015\", \"stage-0\", \"react\"],\r\n  \"plugins\": [\r\n    [\"css-modules-transform\", {\r\n      \"processCss\": \"./src/utils/runtimeStyles.js\"\r\n    }],\r\n    [\"module-alias\", [\r\n      { \"src\": \"./src/containers\", \"expose\": \"containers\" },\r\n      { \"src\": \"./src/components\", \"expose\": \"components\" },\r\n      { \"src\": \"./src/components/layouts\", \"expose\": \"layouts\" },\r\n      { \"src\": \"./src/actions\", \"expose\": \"actions\" },\r\n      { \"src\": \"./src/constants\", \"expose\": \"utils\" },\r\n      { \"src\": \"./src/utils\", \"expose\": \"utils\" }\r\n    ]]\r\n  ]\r\n}\r\n```\r\n\r\nAny ideas what might cause this behaviour?"},"comment":{"url":"https://api.github.com/repos/michalkvasnicak/babel-plugin-css-modules-transform/issues/comments/230311667","html_url":"https://github.com/michalkvasnicak/babel-plugin-css-modules-transform/issues/13#issuecomment-230311667","issue_url":"https://api.github.com/repos/michalkvasnicak/babel-plugin-css-modules-transform/issues/13","id":230311667,"user":{"login":"michalkvasnicak","id":174716,"avatar_url":"https://avatars.githubusercontent.com/u/174716?v=3","gravatar_id":"","url":"https://api.github.com/users/michalkvasnicak","html_url":"https://github.com/michalkvasnicak","followers_url":"https://api.github.com/users/michalkvasnicak/followers","following_url":"https://api.github.com/users/michalkvasnicak/following{/other_user}","gists_url":"https://api.github.com/users/michalkvasnicak/gists{/gist_id}","starred_url":"https://api.github.com/users/michalkvasnicak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalkvasnicak/subscriptions","organizations_url":"https://api.github.com/users/michalkvasnicak/orgs","repos_url":"https://api.github.com/users/michalkvasnicak/repos","events_url":"https://api.github.com/users/michalkvasnicak/events{/privacy}","received_events_url":"https://api.github.com/users/michalkvasnicak/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T15:13:51Z","updated_at":"2016-07-04T15:13:51Z","body":"@jrajav this is weird. I don't know why is `babel-register` resolving all those functions to an empty object. If there is a way to resolve this, it should work without any configuration."}}
{"actor":{"display_login":"michalkvasnicak"}}