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

It has bugs with new updates in Dependencies. #13

Open
abdulnine7 opened this issue Sep 28, 2019 · 5 comments
Open

It has bugs with new updates in Dependencies. #13

abdulnine7 opened this issue Sep 28, 2019 · 5 comments

Comments

@abdulnine7
Copy link

Not Working

@IonicaBizau
Copy link
Owner

Can you please add more details?

@abdulnine7
Copy link
Author

abdulnine7 commented Sep 29, 2019

Error 1

JohnnysStatic.setStaticServer({root: "./public"});
              ^

TypeError: JohnnysStatic.setStaticServer is not a function
    at Object.<anonymous> (/home/flintstone/nodeProjects/github-portfolio/server.js:6:15)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3

The setStaticServer function is renamed to server in new update of johnnys-node-static module.

Error 2

/home/flintstone/nodeProjects/github-portfolio/server.js:11
var converter = new Showdown.converter();
                ^

TypeError: Showdown.converter is not a constructor
    at Object.<anonymous> (/home/flintstone/nodeProjects/github-portfolio/server.js:11:17)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3

@Alynva
Copy link

Alynva commented Nov 26, 2019

This is because you doesn't specify the version of yours dependencies. Stop doing that.

@IonicaBizau
Copy link
Owner

Indeed! 👍

Greetings from Curitiba. 😄

@abdulnine7
Copy link
Author

Yes, This is because of the latest version consideration while making the repository.
"dependencies": { "johnnys-node-static": "*", "showdown": "*" }

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

3 participants