nystudio107 / generator-craftplugin

generator-craftplugin is a Yeoman generator for Craft CMS plugins
MIT License
74 stars 30 forks source link

The alias "@modules/pluginDirName" no longer works #76

Closed TonyDeStefano closed 4 years ago

TonyDeStefano commented 5 years ago

But setting the alias to "@pluginDirName" fixes the issue.

khalwat commented 4 years ago

Can you give me some context for this? I'm using the @modules/pluginDirName alias in my modules, and it seems to be working fine?

Perhaps you don't have something like this in your composer.json ?

  "autoload": {
    "psr-4": {
      "modules\\sitemodule\\": "modules/sitemodule/src/"
    }
TonyDeStefano commented 4 years ago

I think it's fine now. We had issues with it on a previous version of Craft, but all seems well now.