Spyke

Posts

javascript·JavaScriptbyminorsecond

How to fix failed to resolve ol/control/Control from path error

I'm working on a personal project, https://www.packetradiomap.com. I need to npm install and npm run build but I'm getting this error:

@parcel/core: Failed to resolve ol/control/Control from ./node_modules/sidebar-v2/js/ol5-sidebar.js

I'm using this package: https://github.com/Turbo87/sidebar-v2 in my project, along with OpenLayers 5.4.

Previously, to get sidebar to work with OL, I've had to add this line to node_modules/ol/control.js:

export {default as Sidebar} from 'sidebar-v2/js/ol5-sidebar.js';

That would get things working. But now, I get the error mentioned in the title:

`@parcel/core: Failed to resolve 'ol/control/Control' from './node_modules/sidebar-v2/js/ol5-sidebar.js'

C:\Users\username\WebstormProjects\PacketMap\node_modules\sidebar-v2\js\ol5-sidebar.js:2:21
1 | // JS imports

2 | import Control from 'ol/control/Control';
| ^^^^^^^^^^^^^^^^^^^^
3 |
4 | export default class Sidebar extends Control {`

ol/control/Control definitely exists. Does something need to be changed?

View original on kbin.social
3
kbinMeta·/kbin metabyminorsecond

Magazines from other instances not populating with posts

A couple lower popularity magazines I follow from lemmy.ml aren't populating with posts from those communities. Here is an example:

https://kbin.social/m/[email protected]
https://lemmy.ml/c/powerlifting

I made a test post in this community at the lemmy instance to see if it would show up on kbin, and it hasn't.

Is the syncing just lagging at the moment or is something broken?

View original on kbin.social
4
kbinMeta·/kbin metabyminorsecond

Some federated communities not appearing in search

When I search for a community that exists on lemmy.ml by going to Magazines>Search, some of them aren't showing up.

For example, I want to add [email protected]. I've tried searching for just "gis" and for "[email protected]". Neither show that community. The same goes for powerlifting and hamradio.

The first two are newer communities, made within the last week. the hamradio community, I think is newer as there aren't a ton of posts.

Is this just a case of the servers not being "caught up" yet?

View original on kbin.social
2

You reached the end