question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typescript issues and validateCart not being exported

See original GitHub issue

I am using version 3.03 Type Issue: Module ‘“use-shopping-cart”’ has no exported member ‘CartProvider’.

validateCart is not exported

Module not found: Package path ./utilities/serverless is not exported from package\node_modules\use-shopping-cart (see exports field in\node_modules\use-shopping-cart\package.json)
> 11 | import { validateCartItems } from "use-shopping-cart/utilities/serverless";

I have also tried ‘use-shopping-cart/src/serverUtil’ however that doesn’t exist.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
slivoscommented, Aug 30, 2021

@dayhaysoos I didn’t find any other issue yet, so I think, it is ok, thank you for your response, keep up good work.

0reactions
andria-devcommented, Dec 29, 2022

@pntpbgn and @bryandandan, if you haven’t seen it yet, there is a TypeScript example in the examples directory. In the serverless function, we use the following import statement successfully:

import { validateCartItems } from 'use-shopping-cart/utilities'

I hope that helps! And happy holidays

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular - How to fix 'property does not exist on type' error?
It usually happens when you develop Angular applications. To solve this just shut down the server & start it again: $ ng serve....
Read more >
TypeScript errors and how to fix them
A list of common TypeScript errors and how to fix them.
Read more >
Build a Shopping Cart using React and TypeScript - Medium
I am not exporting the component as default, because when we do so, we can change the name of the component. It was...
Read more >
Full-Stack TypeScript Apps - Part 1: Developing Backend APIs ...
This series shows how to create a simple, full-stack web application with Angular, TypeScript, and Nest.js. Part 1: Developing the backend ...
Read more >
NetSuite Applications Suite - Table of Contents
Setting the Allow Subsidiary Hierarchy to be Modified Preference · Modifying Your Subsidiary ... Exporting Data from Application Performance Management ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found