Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imports do not work on angular 13 #17

Open
rasoulMrz opened this issue Mar 30, 2022 · 1 comment
Open

Imports do not work on angular 13 #17

rasoulMrz opened this issue Mar 30, 2022 · 1 comment

Comments

@rasoulMrz
Copy link

rasoulMrz commented Mar 30, 2022

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants