Comments (3)
The positive feedback is appreciated
Can you please share more details so we can figure out the problem? What errors does it spill? How does your svelte.config.js
look like (and rollup.config.js
as well, for that matter)?
from attractions.
Rollup:
import svelte from 'rollup-plugin-svelte';
const svelteConfig = require('svelte.config.js');// wont work with CommonJS nor ES6 style
export default {
// ...,
plugins: [
svelte({
preprocess: sveltePreprocess(),
...svelteConfig
// ...,
})
]
};
svelte.config:
import adapter from '@sveltejs/adapter-auto';
import preprocess from 'svelte-preprocess';
const path = require('path');
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),
kit: {
adapter: adapter()
}
};
Error is:
require is not defined in ES module scope, you can use import instead This file is being treated as an ES module because it has a '.js' file extension and '/home/jonas/repos/Kundenportal/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
from attractions.
I'm confused. Are you using SvelteKit or just plain Svelte? The use of Rollup implies that you are using just plain Svelte, while the configuration in your svelte.config.js
implies that you are using SvelteKit.
from attractions.
Related Issues (20)
- Table style customizations HOT 5
- Add Dropdown Menu component HOT 2
- Upgrade the DatePicker component HOT 8
- Font is missing HOT 7
- How to use custom fonts for e.g. FormFields? HOT 4
- Add Advanced Documentation for the AccordionSection Element HOT 2
- SvelteKit support HOT 4
- :global() isn't processed in SvelteKit, some styles aren't applied HOT 7
- chip-group.scss has an invalid selector :global HOT 3
- Custom table header / table items content? HOT 3
- kebab case for custom elements HOT 5
- Install can't trace down stylesheets HOT 6
- Is illright.me down? (Attractions main documentation source) HOT 2
- CSS media breakpoints support? HOT 1
- svelte-preprocess 5 is available HOT 3
- There are links to broken doc site pages HOT 1
- Input value disappears on drag&drop HOT 8
- Vite HOT 6
- Docs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from attractions.