-
Notifications
You must be signed in to change notification settings - Fork 783
Labels
difficulty: easyfix is easy in difficultyfix is easy in difficultystatus: help wantedrequesting help from the communityrequesting help from the communitytype: bugbug in the librarybug in the library
Description
Issue Summary
The current deepmerge
version doesn't work with Webpack:
TypeError: merge is not a function
at Personalization.deepMergeDynamicTemplateData (/opt/sulvo/cloudflare-app/handlers/.webpack/service/webpack:/node_modules/@sendgrid/helpers/classes/personalization.js:289:1)
...
This is a known issue.
Steps to Reproduce
- Setup Webpack
- Send a transactional email injecting dynamic template data, e.g:
import sgMail from '@sendgrid/mail'
sgMail.setApiKey(process.env.SENDGRID_API_KEY)
sgMail
.send({
to: 'me@sendgrid.com',
from: 'no-reply@sendgrid.com',
templateId: '...',
dynamicTemplateData: {
name: '',
},
}).catch(console.error)
Technical details:
- sendgrid-nodejs version: 6.3.1
- Node.js version: 10.15.1
bave8672, issnoe, CharlBest, aymericbouzy and cbaron
Metadata
Metadata
Assignees
Labels
difficulty: easyfix is easy in difficultyfix is easy in difficultystatus: help wantedrequesting help from the communityrequesting help from the communitytype: bugbug in the librarybug in the library