catamphetamine / webpack-isomorphic-tools

Server-side rendering for your Webpack-built applications (e.g. React)
MIT License
1.25k stars 48 forks source link

Asset not found scss #100

Closed Arueilen closed 8 years ago

Arueilen commented 8 years ago

Hi,

when i run my project (which use the react-redux-universal-hot-example boilerplace), i have this error message:

[webpack-isomorphic-tools] [error] asset not found: ./src/account/accountForm/personalInformations/PersonalInformations.scss

when I require('./PersonalInformations.scss') In ./src/account/accountForm/personalInformations/PersonalInformations.js.

However, this path is correct.

I think it's because in my webpack-asset.json there are:

"./src/account/AccountForm/PersonalInformations/PersonalInformations.scss": {
      "header": "header___1prT_",
      "clearFix": "clearFix___235NT",
      "flexBox": "flexBox___1cV5z",
      "contentForm": "contentForm___23xtz",
      "checkboxNameIsDifferent": "checkboxNameIsDifferent___2Mjfv",
      "inputNameIsDifferent": "inputNameIsDifferent___228BN",
      "dirty": "dirty___3Mmsl",
      "focused": "focused___2t-tS",
      "selectBox": "selectBox___nvIeW",
      "nextButton": "nextButton___1YKvH",
    },

which is not in the same case. I don't know how to fix it.

Have you an idea ? I'm on El Capitan but it's the same on Ubuntu 14

catamphetamine commented 8 years ago

Is the folder name AccountForm or accountForm? I don't know why the cases are different.

Arueilen commented 8 years ago

Folder name is accountForm

catamphetamine commented 8 years ago

You can try to add path parser to scss assets:

path(module, options, log)
{
    log.info('====================== module', module)
    return module.name
}

And post the output

catamphetamine commented 8 years ago

Alternatively you can run it in debug mode and post the generated webpack-stats.json.