Giter Site home page Giter Site logo

Comments (4)

nguyentoanit avatar nguyentoanit commented on June 20, 2024

@moltar: I'm having an issue when test this issue.
I tried to package them locally and test them (on my Windows PC). Follow these steps:

I have two folders:

/amazon-advertising-api-nodejs-sdk-2
/npm-test

On npm-test root folder, i run:

npm install ..\amazon-advertising-api-nodejs-sdk-2\

In package.json of npm-test project, there was installed dependencies:

{
  "name": "npm-test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@scaleleap/amazon-advertising-api-sdk": "file:../amazon-advertising-api-nodejs-sdk-2"
  }
}

But when i import this package on npm-test project. Got an error:

Cannot find module '@scaleleap/amazon-advertising-api-sdk'.

What is wrong? Please help me!

from amazon-advertising-api-sdk.

moltar avatar moltar commented on June 20, 2024

Not sure what’s wrong. But what is the reason you are trying to do that?

from amazon-advertising-api-sdk.

nguyentoanit avatar nguyentoanit commented on June 20, 2024

I want to test after resolve this issue. Our types is exactly exported or not before we publish them

from amazon-advertising-api-sdk.

moltar avatar moltar commented on June 20, 2024

You can see how I’m testing what’s exported from the index here:

https://github.com/ScaleLeap/jest-polly/blob/master/src/index.test.ts

from amazon-advertising-api-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.