newrelic / nr1-how-to

Starter applications for programmability how to examples
5 stars 6 forks source link

import @ syntax #22

Open Limbrey opened 4 years ago

Limbrey commented 4 years ago

Hey @jaesius how does this @ syntax work on import commands? I got this error on build ERROR in ./nerdlets/use-nerdgraph-nerdlet/index.js Module not found: Error: Can't resolve '@newrelic/nr1-community' in '/Users/local_user/enablement/nr1-how-to/use-nerdgraph/nerdlets/use-nerdgraph-nerdlet'

jaesius commented 4 years ago

@Limbrey The @ syntax on the import statement means it's a scoped package.

More information on scoped packages can be found here.

Please try the following command in your CLI

npm install --save @newrelic/nr1-community