Open jakobdamjensen opened 9 years ago
I'm using browserify by the way...
I've tried installing cssify but it didn't change anything
so I guess it's because the node_modules isn't transpiled by browserify making this related to #46....
I'm just guessing here.
So I've added
{
"browserify": {
"transform": ["babelify", "cssify"]
}
}
to the package.json file and now it can run browserify. But now it fails at runtime do to the makeStyles dynamic require in the ios styles.js file. So My approach must be totally wrong.. Don't know what to do =)
Hi there,
have you found a solution to your issue ? I am facing the same problem here, quite annoying..
@schankam nope - didn't find any solution. Hope you will
I am having the same problem when requiering this package from node_modules
even though it is now transpiled before published to npm.
I don't know about browserify, but this webpack can take care of this error by using the css-loader
/style-loader
webpack loaders. If you npm install
those two modules, you can have a webpack.config.js
like:
module.exports = {
entry: './entry',
module: {
loaders: [
{ test: /\.css$/, loader: "style!css" },
...
]
}
};
And it will parse that require(...base.css)
line fine.
This example gives the following error =(
It seems like it's the iOS theme that's causing this issue..