Skip to content

Known issues and how to resolve them

Igor Balos edited this page Dec 4, 2023 · 15 revisions

Installation fails

When trying to install Postmark in my development environment, the install fails with the following message:

error [email protected]: The engine "node" is incompatible with this module. Expected version ">=4 <=9".

possible resolution:

check out:

Removing lock files might solve the problem above.

PostmarkError: The string did not match the expected pattern

Can happen when running tests with jest and using postmark client. Jest runs by default in jsdom mode so it has a window. When changed jest to run in node, this error went away. Apparently, Axios is doing something funny in a browser context.

Axios details. More details about this can be found here.

SyntaxError: Unexpected token import - import axios from './lib/axios.js';

You are probably using older version of NodeJS that we don't support.

Library not working with Cloudfare workers

Postmark.js library is a library running on Node.JS. Cloudfare is running V8 at the moment, and doesn't support NodeJS runtime, therefore the library will not work with it.