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

script loaded from cdn is not working #29

Open
graphis opened this issue Jun 15, 2024 · 2 comments
Open

script loaded from cdn is not working #29

graphis opened this issue Jun 15, 2024 · 2 comments

Comments

@graphis
Copy link

graphis commented Jun 15, 2024

I tried using the cdn version, on mac and on win11 withthoult success.
error is:

TypeError: Failed to resolve module specifier "detect-it". Relative references must start with either "/", "./", or "../".

@panoply
Copy link
Owner

panoply commented Jun 16, 2024

Yeah, the version on NPM registry is still in beta. Though I use it in prod for my projects, I have yet to publish a stable release. However, you can find the docs for release candidate here:

https://65fd9b89430d3e14c7cca763--spxjs.netlify.app

You can install directly from github repo opposed to pulling in via NPM registry or using CDN:

pnpm add github:panoply/spx

Follow the tutorial:
https://65fd9b89430d3e14c7cca763--spxjs.netlify.app/tutorial/

@graphis
Copy link
Author

graphis commented Jul 11, 2024

node_modules/.pnpm/spx@https+++codeload.github.com+panoply+spx+tar.gz+b696287915fc375967c6e0c3924c5f26dfbd4b4f/node_modules/spx/index.d.ts:2:21 - error TS2307: Cannot find module './types/namespace' or its corresponding type declarations.

2 export { SPX } from './types/namespace';
                      ~~~~~~~~~~~~~~~~~~~

node_modules/.pnpm/spx@https+++codeload.github.com+panoply+spx+tar.gz+b696287915fc375967c6e0c3924c5f26dfbd4b4f/node_modules/spx/types/components.d.ts:5:37 - error TS2307: Cannot find module './namespace' or its corresponding type declarations.

5 import type { SPX, TypeState } from './namespace';
                                      ~~~~~~~~~~~~~

node_modules/.pnpm/spx@https+++codeload.github.com+panoply+spx+tar.gz+b696287915fc375967c6e0c3924c5f26dfbd4b4f/node_modules/spx/types/components.d.ts:6:23 - error TS2307: Cannot find module 'src/shared/enums' or its corresponding type declarations.

6 import { Hooks } from 'src/shared/enums';
                        ~~~~~~~~~~~~~~~~~~

node_modules/.pnpm/spx@https+++codeload.github.com+panoply+spx+tar.gz+b696287915fc375967c6e0c3924c5f26dfbd4b4f/node_modules/spx/types/page.d.ts:2:32 - error TS2307: Cannot find module '../src/shared/enums' or its corresponding type declarations.

2 import type { VisitType } from '../src/shared/enums';
                                 ~~~~~~~~~~~~~~~~~~~~~


Found 4 errors in 3 files.

Errors  Files
     1  node_modules/.pnpm/spx@https+++codeload.github.com+panoply+spx+tar.gz+b696287915fc375967c6e0c3924c5f26dfbd4b4f/node_modules/spx/index.d.ts:2
     2  node_modules/.pnpm/spx@https+++codeload.github.com+panoply+spx+tar.gz+b696287915fc375967c6e0c3924c5f26dfbd4b4f/node_modules/spx/types/components.d.ts:5
     1  node_modules/.pnpm/spx@https+++codeload.github.com+panoply+spx+tar.gz+b696287915fc375967c6e0c3924c5f26dfbd4b4f/node_modules/spx/types/page.d.ts:2

a bunch of errors. LAst year I was able to build the spx script but not now

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