scrimba / community

Repository for public issue-tracking and discussions
https://scrimba.com
910 stars 75 forks source link

Bug with resolving relative paths #105

Closed ilyar closed 7 years ago

ilyar commented 7 years ago

https://scrimba.com/c/cvdeEu8

Error: No such file: dist/./.bemrc.js

actual: dist/./.bemrc.js expect: ./.bemrc.js

judofyr commented 7 years ago

I have fixed it locally, but the example still fails due to missing support of scoped NPM packages (#107). I'll let you know when I've deployed the fix.

judofyr commented 7 years ago

Fixed now.

judofyr commented 7 years ago

Your cast seems to still fail due to @bem/entity-name depending on the (native) util module.

ilyar commented 7 years ago

@judofyr How is the file index.pack.js build, webpack? how can I setup an plugin (https://github.com/bem/webpack-bem-loader)?

judofyr commented 7 years ago

@ilyar it's not built with Webpack, but with a custom resolver. Everything is being done client-side which is why we can't use Webpack or Rollup. We don't currently have any plans for a plugin system.