haxordx / haxor-challenge-pubnub-js-getting-started

0 stars 2 forks source link

Error when using the CDN file in Nodejs. #2

Open dejenerate opened 1 year ago

dejenerate commented 1 year ago

I followed the steps in the starter documents for Nodejs and ran into an error with the instructions. The instructions say that the CDN file can be used instead of installing the package, but I received an error when using the CDN file.

I get the following error:

"Uncaught Error Error: Cannot find module 'https://cdn.pubnub.com/sdk/javascript/pubnub.7.2.2.js"

I, however, was able to get the Hello World test app to run when I imported the package using npm in Visual Studio.

haxorbot commented 1 year ago

Awesome! Thanks for participating in Haxor. A human will review your contribution soon!