benmarch / spel2js

Parse Spring Expression Language in JavaScript
Other
69 stars 19 forks source link

Imports do not work on angular 13 #17

Open rasoulMrz opened 2 years ago

rasoulMrz commented 2 years ago

Using angular 13 i get the following error: Could not find a declaration file for module 'spel2js' when trying to import as: import { StandardContext, SpelExpressionEvaluator } from 'spel2js';

I was using const spel2js = require('spel2js'); with angular 12 but it does not work on 13 (and i don't know why).

It seems the solution is for you to provide something like @types/spel2js

benmarch commented 2 years ago

Hey @rasoulMrz, sorry it's not working for you. I can generate a types file at some point, but it won't be right away. In the meantime, please try one of the solutions provided here: https://stackoverflow.com/questions/41292559/could-not-find-a-declaration-file-for-module-module-name-path-to-module-nam