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

Unexpected token "." at compile in typescript.compile.min.js #13

Open
timlangner opened this issue Aug 9, 2022 · 0 comments
Open

Unexpected token "." at compile in typescript.compile.min.js #13

timlangner opened this issue Aug 9, 2022 · 0 comments

Comments

@timlangner
Copy link

I can't manage to get this to work in my project. I downloaded the TypeScript 0.8 (minified JS) and the TypeScript Compile 0.3 (minified JS) files and added these two at the end of the HTML body. Together with my added TypeScript file the end of the body looks like this:

<script type="text/typescript" src="../src/colorSwitcher.ts"></script>
<script type="text/javascript" src="../typescript.min.js"></script>
<script type="text/javascript" src="../typescript.compile.min.js"></script>
</body>

The references to the files are correct.
But when I open the HTML I still get the following error in my console:

Uncaught SyntaxError: Unexpected token '.'
at compile (typescript.compile.min.js:16:20629)
at typescript.compile.min.js:16:20645
at typescript.compile.min.js:16:20656

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

1 participant