Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,40 +82,6 @@ The Contentful Delivery SDK will be accessible via the `contentful` global varia

Check the [releases](https://github.com/contentful/contentful.js/releases) page to know which versions are available.

### Angular 6:
Currently Angular 6 fail to compile with the SDK because it tries to pick the node disribution instead of the browser one, to fix that Make sure to add the following in your `tsconfig.json` file
```js
"paths":{
"contentful": ["./node_modules/contentful/dist/contentful.browser.js"]
}
```
your `tsconfig.json` should look like this

```js
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"paths":{
"contentful": ["./node_modules/contentful/dist/contentful.browser.js"] // add this
},
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
}
}
```
### Legacy browsers:

This library also comes with a legacy version to support Internet Explorer 11 and other older browsers. It already contains a polyfill for Promises.
Expand Down