When working a team to implement a provider verifi...
# pact-js
é
When working a team to implement a provider verification, just installing
@pact-foundation/pact
trigger this message:
Copy code
[ERROR] 15:54:14 TypeError: destination.on is not a function
We are using our
yarn dev
to start the app instead of what you do in the workshop that do as follow:
Copy code
"dev": "NODE_ENV='development' yarn generate-routes && yarn just-build && tsnd --inspect -r dotenv/config --respawn --files src/index.js",
m
Can you share a little more on the setup?
If it's a typescript project it could be a typescript config issue where the import order is incorrect
é
We workaround the issue by starting the server from within the test file, like you do in the workshop. We used the
yarn dev
as the team wasn't sure how to do it programmatically
👍 1