-
Notifications
You must be signed in to change notification settings - Fork 55
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
Importing pixi tilemap does not work #150
Comments
Can you please check, i just published version for v7? |
FYI: I am also unable to import Unfortunately I don't have useful logs and I'm using Pixi via ClojureScript so my tooling configuration is unlikely to help in diagnosing the issue. Update: I've tracked the issue to differences between node module types. I think the core issue is that It appears
Results in an error:
The tooling I am using from ClojureScript (shadow-cljs) "guesses" which way to import the library based on the keys I could not get my repro script to run using commonjs requires without removing |
@noonian can you please check if issue gone with this branch: https://github.com/steel97/pixi-tilemap/tree/cjs-test |
I had the same error. When the type is "module", *.js files are interpreted as modules and do not have "require" function available. Either CommonJS files should use cjs extension or the type should be "commonjs" to make it work with commonjs projects. I do not know if the second option breaks "module" projects though, did not test it. Related: |
I am trying to use a tilemap in my project, I am installing everything with npm.
Importing anything from pixi.js works just fine, but when I install pixi/loaders and or pixi/tilemap it turns from this: https://i.stack.imgur.com/RYUd2.png, to this: https://i.stack.imgur.com/Yltmb.png. When I hover over the items it says
Cannot resolve symbol 'thing'
, and these are the declarations: https://i.stack.imgur.com/hAxT6.png.I imported the loader and tilemap with
npm i --save @pixi/loaders
andnpm i --save @pixi/tilemap
, and installed pixi withnpm i pixi.js
.Also when I try to use the loader like this:
import {Loader} from "@pixi/loaders"
, I get this: https://i.stack.imgur.com/UIfXy.png error.I don't now what I am doing wrong here.
Thanks in advance.
The text was updated successfully, but these errors were encountered: