question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Package name issue

See original GitHub issue

I am trying your library:

import { Vector } from 'prelude.ts';

But I got this error:

src/index.ts:5:24 - error TS2691: An import path cannot end with a '.ts' extension. Consider importing 'prelude' instead.

So I tried only prelude as it suggests and that crashes with this:

src/index.ts:5:24 - error TS2307: Cannot find module 'prelude'.

When I was installing the package I thought the name is a bit weird, but I didn’t expect it is not supported by TypeScript.

TS: 3.1.3 prelude.ts: 0.8.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
emmanueltouzerycommented, Oct 26, 2018

ah the issue would be the module system being es2015. certainly I can add a FAQ entry for that. Maybe I’ll consider again renaming.

0reactions
mnncommented, Oct 26, 2018

Yes, please at least make a note in FAQ or installation, so others aren’t as confused as I was 😃.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting an error after changing package name - Stack Overflow
1- First open AndroidManifest.xml. Select the part of your package name in the package property that you want to change.
Read more >
Error: Package name not found · Issue #33470 - GitHub
Description After integrating RN into an existing Android project, I get the following error: Error: Package name not found in /home/.
Read more >
Naming a Package (The Java™ Tutorials > Learning the Java ...
Package names are written in all lower case to avoid conflict with the names of classes or interfaces. Companies use their reversed Internet...
Read more >
Fixing the “Declared package does not match the expected ...
First, let's make sure that the package declaration and relative source file path match. If that's already the case, we can try to...
Read more >
Configure the app module - Android Developers
Set the application ID ... Every Android app has a unique application ID that looks like a Java or Kotlin package name, such...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found