Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm package is missing "main" entry in package.json file #88

Open
wlopata opened this issue Feb 16, 2017 · 0 comments
Open

npm package is missing "main" entry in package.json file #88

wlopata opened this issue Feb 16, 2017 · 0 comments

Comments

@wlopata
Copy link

wlopata commented Feb 16, 2017

As a result I'm seeing the following error message when building my project:

Message:
    multi vendor
Module not found: Error: Cannot resolve module 'ngCart' in /home/lopek/projects/sklepix2
resolve module ngCart in /home/lopek/projects/sklepix2
  looking for modules in /home/lopek/projects/sklepix2/node_modules
    resolve 'file' ngCart in /home/lopek/projects/sklepix2/node_modules
      resolve file
        /home/lopek/projects/sklepix2/node_modules/ngCart is not a file
        /home/lopek/projects/sklepix2/node_modules/ngCart.webpack.js doesn't exist
        /home/lopek/projects/sklepix2/node_modules/ngCart.web.js doesn't exist
        /home/lopek/projects/sklepix2/node_modules/ngCart.js doesn't exist
        /home/lopek/projects/sklepix2/node_modules/ngCart.json doesn't exist
    resolve 'file' or 'directory' /home/lopek/projects/sklepix2/node_modules/ngCart
      resolve file
        /home/lopek/projects/sklepix2/node_modules/ngCart is not a file
        /home/lopek/projects/sklepix2/node_modules/ngCart.webpack.js doesn't exist
        /home/lopek/projects/sklepix2/node_modules/ngCart.web.js doesn't exist
        /home/lopek/projects/sklepix2/node_modules/ngCart.js doesn't exist
        /home/lopek/projects/sklepix2/node_modules/ngCart.json doesn't exist
      resolve directory
        directory default file index
          resolve file index in /home/lopek/projects/sklepix2/node_modules/ngCart
            /home/lopek/projects/sklepix2/node_modules/ngCart/index doesn't exist
            /home/lopek/projects/sklepix2/node_modules/ngCart/index.webpack.js doesn't exist
            /home/lopek/projects/sklepix2/node_modules/ngCart/index.web.js doesn't exist
            /home/lopek/projects/sklepix2/node_modules/ngCart/index.js doesn't exist
            /home/lopek/projects/sklepix2/node_modules/ngCart/index.json doesn't exist
[/home/lopek/projects/sklepix2/node_modules/ngCart.webpack.js]
[/home/lopek/projects/sklepix2/node_modules/ngCart.webpack.js]
[/home/lopek/projects/sklepix2/node_modules/ngCart.web.js]
[/home/lopek/projects/sklepix2/node_modules/ngCart.web.js]
[/home/lopek/projects/sklepix2/node_modules/ngCart.js]
[/home/lopek/projects/sklepix2/node_modules/ngCart.js]
[/home/lopek/projects/sklepix2/node_modules/ngCart.json]
[/home/lopek/projects/sklepix2/node_modules/ngCart.json]
[/home/lopek/projects/sklepix2/node_modules/ngCart/index]
[/home/lopek/projects/sklepix2/node_modules/ngCart/index.webpack.js]
[/home/lopek/projects/sklepix2/node_modules/ngCart/index.web.js]
[/home/lopek/projects/sklepix2/node_modules/ngCart/index.js]
[/home/lopek/projects/sklepix2/node_modules/ngCart/index.json]

After I manually added "main": "dist/ngCart.js" entry in the node_modules/ngCart/package.json file and rebuilt the error was gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant