Skip to content

Commit 506ee19

Browse files
committed
Fix "Module not found" error in Node.js
1 parent 5fbd020 commit 506ee19

File tree

3 files changed

+81
-80
lines changed

3 files changed

+81
-80
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The library is [UMD](https://github.com/umdjs/umd) compatible.
1515
You can download [recombee-api-client.min.js](./dist/recombee-api-client.min.js) and host it at your site, or use a CDN such as [jsDelivr](https://www.jsdelivr.com/) CDN:
1616

1717
```js
18-
<script src="https://cdn.jsdelivr.net/gh/recombee/[email protected].1/dist/recombee-api-client.min.js"></script>
18+
<script src="https://cdn.jsdelivr.net/gh/recombee/[email protected].2/dist/recombee-api-client.min.js"></script>
1919
```
2020

2121
and use the global `recombee` object.
@@ -209,7 +209,7 @@ Let's assume we want to show recommendations at product page of pants `product-2
209209
</div>
210210
</div>
211211

212-
<script src="https://cdn.jsdelivr.net/gh/recombee/[email protected].1/dist/recombee-api-client.min.js"></script>
212+
<script src="https://cdn.jsdelivr.net/gh/recombee/[email protected].2/dist/recombee-api-client.min.js"></script>
213213

214214
<script type="text/javascript">
215215

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "recombee-js-api-client",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"description": "Client-side js library for easy use of the Recombee recommendation API",
5+
"main": "./src/index.js",
56
"browser": "./src/index.js",
67
"types": "src/index.d.ts",
78
"files": [

0 commit comments

Comments
 (0)