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

Cannot find module 'defaults' #19

Closed
shanejonas opened this issue Mar 26, 2019 · 1 comment · Fixed by #20
Closed

Cannot find module 'defaults' #19

shanejonas opened this issue Mar 26, 2019 · 1 comment · Fixed by #20
Labels

Comments

@shanejonas
Copy link
Contributor

shanejonas commented Mar 26, 2019

Steps to reproduce

  1. Using the following example config .releaserc:
{
  "tagFormat": "${version}",
  "branch": "master",
  "verifyConditions": [
    "@semantic-release/changelog",
    "@semantic-release/git",
    "@qiwi/semantic-release-gh-pages-plugin"
  ],
  "publish": [
    "@semantic-release/github",
    {
      "path": "@qiwi/semantic-release-gh-pages-plugin",
      "msg": "deploy: new gh-pages release",
      "src": "build",
      "branch": "gh-pages"
    }
  ]
}
  1. run npx semantic-release
  2. See error below

Additional information

An error occurred while running semantic-release: { Error: Cannot find module 'defaults'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (<>/node_modules/@qiwi/semantic-release-gh-pages-plugin/lib/es5/index.js:10:22)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3) code: 'MODULE_NOT_FOUND' }
{ Error: Cannot find module 'defaults'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (<>node_modules/@qiwi/semantic-release-gh-pages-plugin/lib/es5/index.js:10:22)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3) code: 'MODULE_NOT_FOUND' }%
shanejonas added a commit to shanejonas/semantic-release-gh-pages-plugin that referenced this issue Mar 26, 2019
antongolub pushed a commit that referenced this issue Mar 26, 2019
qiwibot added a commit that referenced this issue Mar 26, 2019
## [1.6.1](v1.6.0...v1.6.1) (2019-03-26)

### Bug Fixes

* export default module typo ([a85bcc0](a85bcc0)), closes [#19](#19)
@qiwibot
Copy link
Member

qiwibot commented Mar 26, 2019

🎉 This issue has been resolved in version 1.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

2 participants